CAMELLIA-256-ECB.test at [c5f7dd0630]

File tests/test_vectors/Symetric_Block/CAMELLIA-256-ECB.test artifact 80a89a44ee part of check-in c5f7dd0630


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

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.1 {Encrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F] \
		 -data [binary decode hex 00112233445566778899AABBCCDDEEFF]]} \
	-match exact -result 2edf1f3418d53b88841fc8985fb1ecf2

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.2 {Decrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F] \
		 -data [binary decode hex 2EDF1F3418D53B88841FC8985FB1ECF2]]} \
	-match exact -result 00112233445566778899aabbccddeeff

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.3 {Encrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex 6BC1BEE22E409F96E93D7E117393172A]]} \
	-match exact -result befd219b112fa00098919cd101c9ccfa

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.4 {Decrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex BEFD219B112FA00098919CD101C9CCFA]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172a

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.5 {Encrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex AE2D8A571E03AC9C9EB76FAC45AF8E51]]} \
	-match exact -result c91d3a8f1aea08a9386cf4b66c0169ea

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.6 {Decrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex C91D3A8F1AEA08A9386CF4B66C0169EA]]} \
	-match exact -result ae2d8a571e03ac9c9eb76fac45af8e51

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.7 {Encrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex 30C81C46A35CE411E5FBC1191A0A52EF]]} \
	-match exact -result a623d711dc5f25a51bb8a80d56397d28

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.8 {Decrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex A623D711DC5F25A51BB8A80D56397D28]]} \
	-match exact -result 30c81c46a35ce411e5fbc1191a0a52ef

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.9 {Encrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex F69F2445DF4F9B17AD2B417BE66C3710]]} \
	-match exact -result 7960109fb6dc42947fcfe59ea3c5eb6b

tcltest::test Symetric_Block_CAMELLIA-256-ECB-1.10 {Decrypt CAMELLIA-256-ECB} \
	-constraints CAMELLIA_256_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-256-ECB -padding 0 \
		 -key [binary decode hex 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4] \
		 -data [binary decode hex 7960109FB6DC42947FCFE59EA3C5EB6B]]} \
	-match exact -result f69f2445df4f9b17ad2b417be66c3710

# Cleanup
::tcltest::cleanupTests
return