aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/aes128ofb_encrypt_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/aes128ofb_encrypt_block.c')
-rw-r--r--test/aes128ofb_encrypt_block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/aes128ofb_encrypt_block.c b/test/aes128ofb_encrypt_block.c
index ef32a59..df30777 100644
--- a/test/aes128ofb_encrypt_block.c
+++ b/test/aes128ofb_encrypt_block.c
@@ -46,8 +46,7 @@ int main(int argc, char** argv)
fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]);
continue;
}
- cipher = aes128ofb_encrypt(plain, &key_schedule, iv);
- iv = _mm_xor_si128(cipher, plain);
+ cipher = aes128ofb_encrypt(plain, &key_schedule, iv, &iv);
print_aes_block128(&cipher);
}