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