diff options
Diffstat (limited to 'test/aes192cbc_encrypt_block.c')
-rw-r--r-- | test/aes192cbc_encrypt_block.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/aes192cbc_encrypt_block.c b/test/aes192cbc_encrypt_block.c index 27b5384..6d8f15e 100644 --- a/test/aes192cbc_encrypt_block.c +++ b/test/aes192cbc_encrypt_block.c @@ -29,13 +29,13 @@ int main(int argc, char** argv) if (argc < 2) exit_with_usage(); - if (aesni_parse_block192(&key, *argv) != 0) + if (aesni_is_error(aesni_parse_block192(&key, *argv, NULL))) { fprintf(stderr, "Invalid 192-bit AES block '%s'\n", *argv); exit_with_usage(); } - if (aesni_parse_block128(&iv, argv[1]) != 0) + if (aesni_is_error(aesni_parse_block128(&iv, argv[1], NULL))) { fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[1]); exit_with_usage(); @@ -48,7 +48,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; |