Diff
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA

Differences From Artifact [ccefc093e4]:

To Artifact [8dd18633d7]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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









|







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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 Symetric_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 Symetric_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