1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
|
# Auto generated from "PBKDF2-SHA512.txt"
package require tls
package require tcltest
tcltest::testConstraint PBKDF2 [expr {[lsearch -nocase [tls::kdfs] PBKDF2] > -1}]
tcltest::testConstraint SHA512 [expr {[lsearch -nocase [tls::digests] SHA512] > -1}]
tcltest::test KDF_PBKDF2-SHA512-1.1 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "password" -salt "salt" -iterations 1 -size 20]} \
-match exact -result 867f70cf1ade02cff3752599a3a53dc4af34c7a6
tcltest::test KDF_PBKDF2-SHA512-1.2 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "password" -salt "salt" -iterations 2 -size 20]} \
-match exact -result e1d9c16aa681708a45f5c7c4e215ceb66e011a2e
tcltest::test KDF_PBKDF2-SHA512-1.3 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "password" -salt "salt" -iterations 4096 -size 20]} \
-match exact -result d197b1b33db0143e018b12f3d1d1479e6cdebdcc
tcltest::test KDF_PBKDF2-SHA512-1.4 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "password" -salt "salt" -iterations 16777216 -size 20]} \
-match exact -result 6180a3ceabab45cc3964112c811e0131bca93a35
tcltest::test KDF_PBKDF2-SHA512-1.5 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "passwordPASSWORDpassword" -salt "saltSALTsaltSALTsaltSALTsaltSALTsalt" -iterations 4096 -size 25]} \
-match exact -result 8c0511f4c6e597c6ac6315d8f0362e225f3c501495ba23b868
tcltest::test KDF_PBKDF2-SHA512-1.6 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "pass\0word" -salt "sa\0lt" -iterations 4096 -size 16]} \
-match exact -result 9d9e9c4cd21fe4be24d5b8244c759665
tcltest::test KDF_PBKDF2-SHA512-1.7 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "passwd" -salt "salt" -iterations 1 -size 128]} \
-match exact -result c74319d99499fc3e9013acff597c23c5baf0a0bec5634c46b8352b793e324723d55caa76b2b25c43402dcfdc06cdcf66f95b7d0429420b39520006749c51a04ef3eb99e576617395a178ba33214793e48045132928a9e9bf2661769fdc668f31798597aaf6da70dd996a81019726084d70f152baed8aafe2227c07636c6ddece
tcltest::test KDF_PBKDF2-SHA512-1.8 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "Password" -salt "NaCl" -iterations 80000 -size 128]} \
-match exact -result e6337d6fbeb645c794d4a9b5b75b7b30dac9ac50376a91df1f4460f6060d5addb2c1fd1f84409abacc67de7eb4056e6bb06c2d82c3ef4ccd1bded0f675ed97c65c33d39f81248454327aa6d03fd049fc5cbb2b5e6dac08e8ace996cdc960b1bd4530b7e754773d75f67a733fdb99baf6470e42ffcb753c15c352d4800fb6f9d6
tcltest::test KDF_PBKDF2-SHA512-1.9 {PBKDF2-SHA512} \
-constraints PBKDF2 \
-constraints {PBKDF2 SHA512} \
-setup {} \
-body {binary encode hex [tls::pbkdf2 -digest SHA512 -password "Password" -salt "sa\0lt" -iterations 4096 -size 256]} \
-match exact -result 10176fb32cb98cd7bb31e2bb5c8f6e425c103333a2e496058e3fd2bd88f657485c89ef92daa0668316bc23ebd1ef88f6dd14157b2320b5d54b5f26377c5dc279b1dcdec044bd6f91b166917c80e1e99ef861b1d2c7bce1b961178125fb86867f6db489a2eae0022e7bc9cf421f044319fac765d70cb89b45c214590e2ffb2c2b565ab3b9d07571fde0027b1dc57f8fd25afa842c1056dd459af4074d7510a0c020b914a5e202445d4d3f151070589dd6a2554fc506018c4f001df6239643dc86771286ae4910769d8385531bba57544d63c3640b90c98f1445ebdd129475e02086b600f0beb5b05cc6ca9b3633b452b7dad634e9336f56ec4c3ac0b4fe54ced8
# Cleanup
::tcltest::cleanupTests
return
|