Diff

Differences From Artifact [77cff59e3a]:

To Artifact [2538a9cfa3]:


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
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








-
+






-
+






-
+






-
+






-
+






-
+







# 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} \
tcltest::test Symetric_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} \
tcltest::test Symetric_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} \
tcltest::test Symetric_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} \
tcltest::test Symetric_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} \
tcltest::test Symetric_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} \
tcltest::test Symetric_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