1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Auto generated from "PBKDF2-SHA384.txt"
package require tls
package require tcltest
tcltest::testConstraint PBKDF2 [expr {[lsearch -nocase [tls::kdfs] PBKDF2] > -1}]
tcltest::testConstraint SHA384 [expr {[lsearch -nocase [tls::digests] SHA384] > -1}]
tcltest::test KDF_PBKDF2-SHA384-1.1 {PBKDF2-SHA384} \
-constraints {PBKDF2 SHA384} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA384 -password "password" -salt "salt" -iterations 1 -size 20]} \
-match exact -result c0e14f06e49e32d73f9f52ddf1d0c5c719160923
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Auto generated from "PBKDF2-SHA384.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 SHA384 [expr {[lsearch -nocase [tls::digests] SHA384] > -1}]
catch {tls::provider legacy}
tcltest::test KDF_PBKDF2-SHA384-1.1 {PBKDF2-SHA384} \
-constraints {PBKDF2 SHA384} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA384 -password "password" -salt "salt" -iterations 1 -size 20]} \
-match exact -result c0e14f06e49e32d73f9f52ddf1d0c5c719160923
|