Artifact [1668e2169f]

Artifact 1668e2169f52098fbe0e9693ea3853e0bb1a8647f219c4d864762ce8a26bae7a:


# Auto generated from "CAMELLIA-128-CFB.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_128_CFB [expr {[lsearch -nocase [tls::ciphers] CAMELLIA-128-CFB] > -1}]

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.1 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 000102030405060708090A0B0C0D0E0F] \
		 -data [binary decode hex 6BC1BEE22E409F96E93D7E117393172A]]} \
	-match exact -result 14f7646187817eb586599146b82bd719

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.2 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 000102030405060708090A0B0C0D0E0F] \
		 -data [binary decode hex 14F7646187817EB586599146B82BD719]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172a

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.3 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 14F7646187817EB586599146B82BD719] \
		 -data [binary decode hex AE2D8A571E03AC9C9EB76FAC45AF8E51]]} \
	-match exact -result a53d28bb82df741103ea4f921a44880b

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.4 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 14F7646187817EB586599146B82BD719] \
		 -data [binary decode hex A53D28BB82DF741103EA4F921A44880B]]} \
	-match exact -result ae2d8a571e03ac9c9eb76fac45af8e51

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.5 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex A53D28BB82DF741103EA4F921A44880B] \
		 -data [binary decode hex 30C81C46A35CE411E5FBC1191A0A52EF]]} \
	-match exact -result 9c2157a664626d1def9ea420fde69b96

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.6 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex A53D28BB82DF741103EA4F921A44880B] \
		 -data [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96]]} \
	-match exact -result 30c81c46a35ce411e5fbc1191a0a52ef

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.7 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96] \
		 -data [binary decode hex F69F2445DF4F9B17AD2B417BE66C3710]]} \
	-match exact -result 742a25f0542340c7baef24ca8482bb09

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.8 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96] \
		 -data [binary decode hex 742A25F0542340C7BAEF24CA8482BB09]]} \
	-match exact -result f69f2445df4f9b17ad2b417be66c3710

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.9 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 000102030405060708090A0B0C0D0E0F] \
		 -data [binary decode hex 6BC1BEE22E409F96E93D7E117393172A]]} \
	-match exact -result 14f7646187817eb586599146b82bd719

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.10 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 000102030405060708090A0B0C0D0E0F] \
		 -data [binary decode hex 14F7646187817EB586599146B82BD719]]} \
	-match exact -result 6bc1bee22e409f96e93d7e117393172a

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.11 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 14F7646187817EB586599146B82BD719] \
		 -data [binary decode hex AE2D8A571E03AC9C9EB76FAC45AF8E51]]} \
	-match exact -result a53d28bb82df741103ea4f921a44880b

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.12 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 14F7646187817EB586599146B82BD719] \
		 -data [binary decode hex A53D28BB82DF741103EA4F921A44880B]]} \
	-match exact -result ae2d8a571e03ac9c9eb76fac45af8e51

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.13 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex A53D28BB82DF741103EA4F921A44880B] \
		 -data [binary decode hex 30C81C46A35CE411E5FBC1191A0A52EF]]} \
	-match exact -result 9c2157a664626d1def9ea420fde69b96

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.14 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex A53D28BB82DF741103EA4F921A44880B] \
		 -data [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96]]} \
	-match exact -result 30c81c46a35ce411e5fbc1191a0a52ef

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.15 {Encrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::encrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96] \
		 -data [binary decode hex F69F2445DF4F9B17AD2B417BE66C3710]]} \
	-match exact -result 742a25f0542340c7baef24ca8482bb09

tcltest::test Symetric_Block_CAMELLIA-128-CFB-1.16 {Decrypt CAMELLIA-128-CFB} \
	-constraints CAMELLIA_128_CFB \
	-body {binary encode hex [tls::decrypt -cipher CAMELLIA-128-CFB -padding 0 \
		 -key [binary decode hex 2B7E151628AED2A6ABF7158809CF4F3C] \
		 -iv [binary decode hex 9C2157A664626D1DEF9EA420FDE69B96] \
		 -data [binary decode hex 742A25F0542340C7BAEF24CA8482BB09]]} \
	-match exact -result f69f2445df4f9b17ad2b417be66c3710

# Cleanup
::tcltest::cleanupTests
return