# Auto generated from "ARIA256.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 ARIA256 [expr {[lsearch -nocase [tls::ciphers] ARIA256] > -1}]
tcltest::test Symetric_Block_ARIA256-1.1 {Encrypt ARIA256} \
-constraints ARIA256 \
-body {binary encode hex [tls::encrypt -cipher ARIA256 -padding 0 \
-key [binary decode hex 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f] \
-data [binary decode hex 00112233445566778899aabbccddeeff]]} \
-match exact -result f92bd7c79fb72e2f2b8f80c1972d24fc
tcltest::test Symetric_Block_ARIA256-1.2 {Decrypt ARIA256} \
-constraints ARIA256 \
-body {binary encode hex [tls::decrypt -cipher ARIA256 -padding 0 \
-key [binary decode hex 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f] \
-data [binary decode hex f92bd7c79fb72e2f2b8f80c1972d24fc]]} \
-match exact -result 00112233445566778899aabbccddeeff
# Cleanup
::tcltest::cleanupTests
return