DES-EDE3-OFB.test at [0046a7f25d]

File tests/test_vectors/Symetric_Block/DES-EDE3-OFB.test artifact cbde3c164f part of check-in 0046a7f25d


# Auto generated from "DES-EDE3-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_EDE3_OFB [expr {[lsearch -nocase [tls::ciphers] DES-EDE3-OFB] > -1}]

tcltest::test Symetric_Block_DES-EDE3-OFB-1.1 {Encrypt DES-EDE3-OFB} \
	-constraints DES_EDE3_OFB \
	-body {binary encode hex [tls::encrypt -cipher DES-EDE3-OFB -padding 0 \
		 -key [binary decode hex 0123456789abcdef23456789abcdef01456789abcdef0123] \
		 -iv [binary decode hex f69f2445df4f9b17] \
		 -data [binary decode hex 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51]]} \
	-match exact -result 078bb74e59ce7ed6267e120692667da1a58662d7e04cbc642144d55c03db5aee

tcltest::test Symetric_Block_DES-EDE3-OFB-1.2 {Decrypt DES-EDE3-OFB} \
	-constraints DES_EDE3_OFB \
	-body {binary encode hex [tls::decrypt -cipher DES-EDE3-OFB -padding 0 \
		 -key [binary decode hex 0123456789abcdef23456789abcdef01456789abcdef0123] \
		 -iv [binary decode hex f69f2445df4f9b17] \
		 -data [binary decode hex 078bb74e59ce7ed6267e120692667da1a58662d7e04cbc642144d55c03db5aee]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51

tcltest::test Symetric_Block_DES-EDE3-OFB-1.3 {Encrypt DES-EDE3-OFB} \
	-constraints DES_EDE3_OFB \
	-body {binary encode hex [tls::encrypt -cipher DES-EDE3-OFB -padding 0 \
		 -key [binary decode hex 0123456789abcdef23456789abcdef010123456789abcdef] \
		 -iv [binary decode hex f69f2445df4f9b17] \
		 -data [binary decode hex 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51]]} \
	-match exact -result 6195b9c2c39909c53334ba77ffdccc80e485e85f0a63e7646d8d732e33241f94

tcltest::test Symetric_Block_DES-EDE3-OFB-1.4 {Decrypt DES-EDE3-OFB} \
	-constraints DES_EDE3_OFB \
	-body {binary encode hex [tls::decrypt -cipher DES-EDE3-OFB -padding 0 \
		 -key [binary decode hex 0123456789abcdef23456789abcdef010123456789abcdef] \
		 -iv [binary decode hex f69f2445df4f9b17] \
		 -data [binary decode hex 6195b9c2c39909c53334ba77ffdccc80e485e85f0a63e7646d8d732e33241f94]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51

# Cleanup
::tcltest::cleanupTests
return