1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Auto generated from "PBKDF2-SHA256.txt"
package require tls
package require tcltest
tcltest::testConstraint PBKDF2 [expr {[lsearch -nocase [tls::kdfs] PBKDF2] > -1}]
tcltest::testConstraint SHA256 [expr {[lsearch -nocase [tls::digests] SHA256] > -1}]
tcltest::test KDF_PBKDF2-SHA256-1.1 {PBKDF2-SHA256} \
-constraints {PBKDF2 SHA256} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA256 -password "password" -salt "salt" -iterations 1 -size 20]} \
-match exact -result 120fb6cffcf8b32c43e7225256c4f837a86548c9
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Auto generated from "PBKDF2-SHA256.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
tcltest::testConstraint PBKDF2 [expr {[lsearch -nocase [tls::kdfs] PBKDF2] > -1}]
tcltest::testConstraint SHA256 [expr {[lsearch -nocase [tls::digests] SHA256] > -1}]
catch {tls::provider legacy}
tcltest::test KDF_PBKDF2-SHA256-1.1 {PBKDF2-SHA256} \
-constraints {PBKDF2 SHA256} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA256 -password "password" -salt "salt" -iterations 1 -size 20]} \
-match exact -result 120fb6cffcf8b32c43e7225256c4f837a86548c9
|