aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/aes256ecb_encrypt_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/aes256ecb_encrypt_block.c')
-rw-r--r--test/aes256ecb_encrypt_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/aes256ecb_encrypt_block.c b/test/aes256ecb_encrypt_block.c
index 9aa771d..3d0a8ee 100644
--- a/test/aes256ecb_encrypt_block.c
+++ b/test/aes256ecb_encrypt_block.c
@@ -29,7 +29,7 @@ int main(int argc, char** argv)
if (argc < 1)
exit_with_usage();
- if (aesni_parse_block256(&key, *argv) != 0)
+ if (aesni_is_error(aesni_parse_block256(&key, *argv, NULL)))
{
fprintf(stderr, "Invalid 256-bit AES block '%s'\n", *argv);
exit_with_usage();
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
if (strcmp("--", *argv) == 0)
break;
- if (aesni_parse_block128(&plain, *argv) != 0)
+ if (aesni_is_error(aesni_parse_block128(&plain, *argv, NULL)))
{
fprintf(stderr, "Invalid 128-bit AES block '%s'\n", *argv);
continue;