CAMELLIA-192-ECB.test at [0046a7f25d]

File tests/test_vectors/Symetric_Block/CAMELLIA-192-ECB.test artifact 45ae28ca1c part of check-in 0046a7f25d


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

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.1 {Encrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 000102030405060708090A0B0C0D0E0F1011121314151617] \
		 -data [binary decode hex 00112233445566778899AABBCCDDEEFF]]} \
	-match exact -result b22f3c36b72d31329eee8addc2906c68

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.2 {Decrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 000102030405060708090A0B0C0D0E0F1011121314151617] \
		 -data [binary decode hex B22F3C36B72D31329EEE8ADDC2906C68]]} \
	-match exact -result 00112233445566778899aabbccddeeff

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.3 {Encrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex 6BC1BEE22E409F96E93D7E117393172A]]} \
	-match exact -result cccc6c4e138b45848514d48d0d3439d3

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.4 {Decrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex CCCC6C4E138B45848514D48D0D3439D3]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172a

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.5 {Encrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex AE2D8A571E03AC9C9EB76FAC45AF8E51]]} \
	-match exact -result 5713c62c14b2ec0f8393b6afd6f5785a

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.6 {Decrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex 5713C62C14B2EC0F8393B6AFD6F5785A]]} \
	-match exact -result ae2d8a571e03ac9c9eb76fac45af8e51

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.7 {Encrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex 30C81C46A35CE411E5FBC1191A0A52EF]]} \
	-match exact -result b40ed2b60eb54d09d030cf511feef366

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.8 {Decrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex B40ED2B60EB54D09D030CF511FEEF366]]} \
	-match exact -result 30c81c46a35ce411e5fbc1191a0a52ef

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.9 {Encrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex F69F2445DF4F9B17AD2B417BE66C3710]]} \
	-match exact -result 909dbd95799096748cb27357e73e1d26

tcltest::test Symetric_Block_CAMELLIA-192-ECB-1.10 {Decrypt CAMELLIA-192-ECB} \
	-constraints CAMELLIA_192_ECB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-192-ECB -padding 0 \
		 -key [binary decode hex 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B] \
		 -data [binary decode hex 909DBD95799096748CB27357E73E1D26]]} \
	-match exact -result f69f2445df4f9b17ad2b417be66c3710

# Cleanup
::tcltest::cleanupTests
return