AES-192-ECB.test at [9d265b298a]

File tests/test_vectors/Symetric_Block/AES-192-ECB.test artifact 48b9e7cd3a part of check-in 9d265b298a


# Auto generated from "AES-192-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 AES_192_ECB [expr {[lsearch -nocase [tls::ciphers] AES-192-ECB] > -1}]

tcltest::test Symetric_Block_AES-192-ECB-1.1 {Encrypt AES-192-ECB} \
	-constraints AES_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher AES-192-ECB -padding 0 \
		 -key [binary decode hex 8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b] \
		 -data [binary decode hex 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710]]} \
	-match exact -result bd334f1d6e45f25ff712a214571fa5cc974104846d0ad3ad7734ecb3ecee4eefef7afd2270e2e60adce0ba2face6444e9a4b41ba738d6c72fb16691603c18e0e

tcltest::test Symetric_Block_AES-192-ECB-1.2 {Decrypt AES-192-ECB} \
	-constraints AES_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher AES-192-ECB -padding 0 \
		 -key [binary decode hex 8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b] \
		 -data [binary decode hex bd334f1d6e45f25ff712a214571fa5cc974104846d0ad3ad7734ecb3ecee4eefef7afd2270e2e60adce0ba2face6444e9a4b41ba738d6c72fb16691603c18e0e]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710

# Cleanup
::tcltest::cleanupTests
return