# Auto generated from "AES-192-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 AES_192_OFB [expr {[lsearch -nocase [tls::ciphers] AES-192-OFB] > -1}]
tcltest::test Symetric_Block_AES-192-OFB-1.1 {Encrypt AES-192-OFB} \
-constraints AES_192_OFB \
-body {binary encode hex [tls::encrypt -cipher AES-192-OFB -padding 0 \
-key [binary decode hex 8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b] \
-iv [binary decode hex 000102030405060708090a0b0c0d0e0f] \
-data [binary decode hex 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710]]} \
-match exact -result cdc80d6fddf18cab34c25909c99a4174fcc28b8d4c63837c09e81700c11004018d9a9aeac0f6596f559c6d4daf59a5f26d9f200857ca6c3e9cac524bd9acc92a
tcltest::test Symetric_Block_AES-192-OFB-1.2 {Decrypt AES-192-OFB} \
-constraints AES_192_OFB \
-body {binary encode hex [tls::decrypt -cipher AES-192-OFB -padding 0 \
-key [binary decode hex 8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b] \
-iv [binary decode hex 000102030405060708090a0b0c0d0e0f] \
-data [binary decode hex cdc80d6fddf18cab34c25909c99a4174fcc28b8d4c63837c09e81700c11004018d9a9aeac0f6596f559c6d4daf59a5f26d9f200857ca6c3e9cac524bd9acc92a]]} \
-match exact -result 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710
# Cleanup
::tcltest::cleanupTests
return