Added tests/test_vectors/Symetric_Block/DES-CBC.test version [cb0cbf5ffa].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-CBC.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_CBC [expr {[lsearch -nocase [tls::ciphers] DES-CBC] > -1}]
tcltest::test Block_DES-CBC-1.1 {Encrypt DES-CBC} \
-constraints DES_CBC \
-body {binary encode hex [tls::encrypt -cipher DES-CBC -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f77206973207468652074696d6520666f7220616c6c20]]} \
-match exact -result e5c7cdde872bf27c43e934008c389c0f683788499a7c05f6
tcltest::test Block_DES-CBC-1.2 {Decrypt DES-CBC} \
-constraints DES_CBC \
-body {binary encode hex [tls::decrypt -cipher DES-CBC -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex e5c7cdde872bf27c43e934008c389c0f683788499a7c05f6]]} \
-match exact -result 4e6f77206973207468652074696d6520666f7220616c6c20
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CBC.txt version [dfffa60283].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-CBC
# From FIPS Pub 81 Appendix C
# CBC-DES.Encrypt and CBC-DES.Decrypt
Klen = 8
Ilen = 8
Len = 24
Key = 0123456789abcdef
IV = 1234567890abcdef
#Plaintext = "Now is the time for all "
Plaintext = 4e6f77206973207468652074696d6520666f7220616c6c20
Ciphertext = e5c7cdde872bf27c43e934008c389c0f683788499a7c05f6
|
| | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB.test version [b436b3e392].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-CFB.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_CFB [expr {[lsearch -nocase [tls::ciphers] DES-CFB] > -1}]
tcltest::test Block_DES-CFB-1.1 {Encrypt DES-CFB} \
-constraints DES_CFB \
-body {binary encode hex [tls::encrypt -cipher DES-CFB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f77206973207468652074696d6520666f7220616c6c20]]} \
-match exact -result f3096249c7f46e51a69e839b1a92f78403467133898ea622
tcltest::test Block_DES-CFB-1.2 {Decrypt DES-CFB} \
-constraints DES_CFB \
-body {binary encode hex [tls::decrypt -cipher DES-CFB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex f3096249c7f46e51a69e839b1a92f78403467133898ea622]]} \
-match exact -result 4e6f77206973207468652074696d6520666f7220616c6c20
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB.txt version [65b7c1c37a].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-CFB
# From FIPS Pub 81 Appendix D3
# CFB-DES.Encrypt and CFB-DES.Decrypt
Klen = 8
Ilen = 8
Len = 24
Key = 0123456789abcdef
IV = 1234567890abcdef
#Plaintext = "Now is the time for all "
Plaintext = 4e6f77206973207468652074696d6520666f7220616c6c20
Ciphertext = f3096249c7f46e51a69e839b1a92f78403467133898ea622
|
| | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB1.test version [4043cb42be].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-CFB1.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_CFB1 [expr {[lsearch -nocase [tls::ciphers] DES-CFB1] > -1}]
tcltest::test Block_DES-CFB1-1.1 {Encrypt DES-CFB1} \
-constraints DES_CFB1 \
-body {binary encode hex [tls::encrypt -cipher DES-CFB1 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f77]]} \
-match exact -result cd1ec9
tcltest::test Block_DES-CFB1-1.2 {Decrypt DES-CFB1} \
-constraints DES_CFB1 \
-body {binary encode hex [tls::decrypt -cipher DES-CFB1 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex cd1ec9]]} \
-match exact -result 4e6f77
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB1.txt version [1c88060fd4].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-CFB1
# From FIPS Pub 81 Appendix D1
# CFB1-DES.Encrypt and CFB1-DES.Decrypt
Klen = 8
Ilen = 8
Len = 3
Key = 0123456789abcdef
IV = 1234567890abcdef
# 010011100110111101110111
Plaintext = 4e6f77
# 110011010001111011001001
Ciphertext = cd1ec9
|
| | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB8.test version [49f880056a].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-CFB8.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_CFB8 [expr {[lsearch -nocase [tls::ciphers] DES-CFB8] > -1}]
tcltest::test Block_DES-CFB8-1.1 {Encrypt DES-CFB8} \
-constraints DES_CFB8 \
-body {binary encode hex [tls::encrypt -cipher DES-CFB8 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f7720697320746865]]} \
-match exact -result f31fda07011462ee187f
tcltest::test Block_DES-CFB8-1.2 {Decrypt DES-CFB8} \
-constraints DES_CFB8 \
-body {binary encode hex [tls::decrypt -cipher DES-CFB8 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex f31fda07011462ee187f]]} \
-match exact -result 4e6f7720697320746865
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-CFB8.txt version [ac32401e77].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-CFB8
# From FIPS Pub 81 Appendix D2
# CFB8-DES.Encrypt and CFB8-DES.Decrypt
Klen = 8
Ilen = 8
Len = 10
Key = 0123456789abcdef
IV = 1234567890abcdef
#Plaintext = "Now is the"
Plaintext = 4e6f7720697320746865
Ciphertext = f31fda07011462ee187f
|
| | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-ECB.test version [77cff59e3a].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-ECB.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_ECB [expr {[lsearch -nocase [tls::ciphers] DES-ECB] > -1}]
tcltest::test Block_DES-ECB-1.1 {Encrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::encrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 4e6f772069732074]]} \
-match exact -result 3fa40e8a984d4815
tcltest::test Block_DES-ECB-1.2 {Decrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::decrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 3fa40e8a984d4815]]} \
-match exact -result 4e6f772069732074
tcltest::test Block_DES-ECB-1.3 {Encrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::encrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 68652074696d6520]]} \
-match exact -result 6a271787ab8883f9
tcltest::test Block_DES-ECB-1.4 {Decrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::decrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 6a271787ab8883f9]]} \
-match exact -result 68652074696d6520
tcltest::test Block_DES-ECB-1.5 {Encrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::encrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 666f7220616c6c20]]} \
-match exact -result 893d51ec4b563b53
tcltest::test Block_DES-ECB-1.6 {Decrypt DES-ECB} \
-constraints DES_ECB \
-body {binary encode hex [tls::decrypt -cipher DES-ECB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-data [binary decode hex 893d51ec4b563b53]]} \
-match exact -result 666f7220616c6c20
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-ECB.txt version [28c993f531].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-ECB
# From FIPS Pub 81 Appendix B
# ECB-DES.Encrypt and ECB-DES.Decrypt
Klen = 8
Len = 8
Key = 0123456789abcdef
Plaintext = 4e6f772069732074
Ciphertext = 3fa40e8a984d4815
Klen = 8
Len = 8
Key = 0123456789abcdef
Plaintext = 68652074696d6520
Ciphertext = 6a271787ab8883f9
Klen = 8
Len = 8
Key = 0123456789abcdef
Plaintext = 666f7220616c6c20
Ciphertext = 893d51ec4b563b53
|
| | | | | | | | | | | | | | | | | | | | |
Modified tests/test_vectors/Symetric_Block/DES-EDE3-CFB1.txt
from [75268758d3]
to [401077fbea].
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
|
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
|
-
+
-
+
|
# DES-EDE3-CFB1 (3DES)
# From FIPS Pub 46-3
# CFB1-TDES.Encrypt and CFB1-TDES.Decrypt
Klen = 24
Ilen = 8
Len = 2
Len = 1
Key = 0123456789abcdef23456789abcdef01456789abcdef0123
IV = f69f2445df4f9b17
# 01101011
Plaintext = 6b
# 01011100
Ciphertext = 5c
# CFB1-TDES.Encrypt and CFB1-TDES.Decrypt
Klen = 24
Ilen = 8
Len = 2
Len = 1
Key = 0123456789abcdef23456789abcdef010123456789abcdef
IV = f69f2445df4f9b17
# 01101011
Plaintext = 6b
# 01100110
Ciphertext = 66
|
Added tests/test_vectors/Symetric_Block/DES-OFB.test version [d362dffe40].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-OFB.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_OFB [expr {[lsearch -nocase [tls::ciphers] DES-OFB] > -1}]
tcltest::test Block_DES-OFB-1.1 {Encrypt DES-OFB} \
-constraints DES_OFB \
-body {binary encode hex [tls::encrypt -cipher DES-OFB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 5765207468652070656f706c65206f662074686520556e69746564205374617465732c20696e206f7264657220746f20]]} \
-match exact -result ea03351dc6e26e5538f81a3c22a637797b7641a66463fa8a0c9d1ead3ed113d70608a565602f23c421c8836e82c5f07b
tcltest::test Block_DES-OFB-1.2 {Decrypt DES-OFB} \
-constraints DES_OFB \
-body {binary encode hex [tls::decrypt -cipher DES-OFB -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex ea03351dc6e26e5538f81a3c22a637797b7641a66463fa8a0c9d1ead3ed113d70608a565602f23c421c8836e82c5f07b]]} \
-match exact -result 5765207468652070656f706c65206f662074686520556e69746564205374617465732c20696e206f7264657220746f20
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-OFB.txt version [b898c19c8e].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-OFB
# From FIPS Pub 81, Change Notice 3
# OFB-DES.Encrypt and OFB-DES.Decrypt
Klen = 8
Ilen = 8
Len = 48
Key = 0123456789abcdef
IV = 1234567890abcdef
#Plaintext = "We the people of the United States, in order to "
Plaintext = 5765207468652070656f706c65206f662074686520556e69746564205374617465732c20696e206f7264657220746f20
Ciphertext = ea03351dc6e26e5538f81a3c22a637797b7641a66463fa8a0c9d1ead3ed113d70608a565602f23c421c8836e82c5f07b
|
| | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-OFB1.test version [ccefc093e4].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-OFB1.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_OFB1 [expr {[lsearch -nocase [tls::ciphers] DES-OFB1] > -1}]
tcltest::test Block_DES-OFB1-1.1 {Encrypt DES-OFB1} \
-constraints DES_OFB1 \
-body {binary encode hex [tls::encrypt -cipher DES-OFB1 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f77]]} \
-match exact -result e3d34b
tcltest::test Block_DES-OFB1-1.2 {Decrypt DES-OFB1} \
-constraints DES_OFB1 \
-body {binary encode hex [tls::decrypt -cipher DES-OFB1 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex e3d34b]]} \
-match exact -result 4e6f77
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-OFB1.txt version [cc5cbb6c26].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-OFB1
# From FIPS Pub 81 Appendix E
# OFB1-DES.Encrypt and OFB1-DES.Decrypt
Klen = 8
Ilen = 8
Len = 3
Key = 0123456789abcdef
IV = 1234567890abcdef
# 010011100110111101110111
Plaintext = 4e6f77
# 111000111101001101001011
Ciphertext = e3d34b
|
| | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-OFB8.test version [764174ce91].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# Auto generated from "DES-OFB8.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
catch {tls::provider legacy}
tcltest::testConstraint DES_OFB8 [expr {[lsearch -nocase [tls::ciphers] DES-OFB8] > -1}]
tcltest::test Block_DES-OFB8-1.1 {Encrypt DES-OFB8} \
-constraints DES_OFB8 \
-body {binary encode hex [tls::encrypt -cipher DES-OFB8 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex 4e6f7720697320746865]]} \
-match exact -result f34a2850c9c64985d684
tcltest::test Block_DES-OFB8-1.2 {Decrypt DES-OFB8} \
-constraints DES_OFB8 \
-body {binary encode hex [tls::decrypt -cipher DES-OFB8 -padding 0 \
-key [binary decode hex 0123456789abcdef] \
-iv [binary decode hex 1234567890abcdef] \
-data [binary decode hex f34a2850c9c64985d684]]} \
-match exact -result 4e6f7720697320746865
# Cleanup
::tcltest::cleanupTests
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES-OFB8.txt version [d219c6156d].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# DES-OFB8
# From FIPS Pub 81 Appendix E
# OFB8-DES.Encrypt and OFB8-DES.Decrypt
Klen = 8
Ilen = 8
Len = 10
Key = 0123456789abcdef
IV = 1234567890abcdef
#Plaintext = "Now is the"
Plaintext = 4e6f7720697320746865
Ciphertext = f34a2850c9c64985d684
|
| | | | | | | | | | | |
Added tests/test_vectors/Symetric_Block/DES.test version [862208e857].