diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-03 22:46:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-03 22:46:18 +0300 |
commit | 91923133903515c98973543c0e17705537449c22 (patch) | |
tree | 3848b63fe8e6c2d2e5ff7f564bacadfd5652a783 /test/aes192ofb_decrypt_block.c | |
parent | add OFB mode (diff) | |
download | aes-tools-91923133903515c98973543c0e17705537449c22.tar.gz aes-tools-91923133903515c98973543c0e17705537449c22.zip |
init vectors are calculated by API functions
Diffstat (limited to '')
-rw-r--r-- | test/aes192ofb_decrypt_block.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/aes192ofb_decrypt_block.c b/test/aes192ofb_decrypt_block.c index 19c873f..268b00c 100644 --- a/test/aes192ofb_decrypt_block.c +++ b/test/aes192ofb_decrypt_block.c @@ -47,8 +47,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - plain = aes192cfb_decrypt(cipher, &key_schedule, iv); - iv = _mm_xor_si128(cipher, plain); + plain = aes192ofb_decrypt(cipher, &key_schedule, iv, &iv); print_aes_block128(&plain); } |