Commit c8a90a35 authored by Niels Möller's avatar Niels Möller

Add cast in test_cipher_cfb8.

* testsuite/testutils.c (test_cipher_cfb8): Add cast of size_t to
unsigned long for argument to fprintf.
parent cdbbe64a
2019-12-04 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (test_cipher_cfb8): Add cast of size_t to
unsigned long for argument to fprintf.
2019-11-21 Niels Möller <nisse@lysator.liu.se> 2019-11-21 Niels Möller <nisse@lysator.liu.se>
* eccdata.c (ecc_curve_init_str): Delete unused t and d arguments. * eccdata.c (ecc_curve_init_str): Delete unused t and d arguments.
......
...@@ -466,7 +466,7 @@ test_cipher_cfb8(const struct nettle_cipher *cipher, ...@@ -466,7 +466,7 @@ test_cipher_cfb8(const struct nettle_cipher *cipher,
if (!MEMEQ(length, data, ciphertext->data)) if (!MEMEQ(length, data, ciphertext->data))
{ {
fprintf(stderr, "CFB8 encrypt failed, block size %lu:\nInput:", fprintf(stderr, "CFB8 encrypt failed, block size %lu:\nInput:",
block); (unsigned long) block);
tstring_print_hex(cleartext); tstring_print_hex(cleartext);
fprintf(stderr, "\nOutput: "); fprintf(stderr, "\nOutput: ");
print_hex(length, data); print_hex(length, data);
...@@ -494,7 +494,7 @@ test_cipher_cfb8(const struct nettle_cipher *cipher, ...@@ -494,7 +494,7 @@ test_cipher_cfb8(const struct nettle_cipher *cipher,
if (!MEMEQ(length, data2, cleartext->data)) if (!MEMEQ(length, data2, cleartext->data))
{ {
fprintf(stderr, "CFB8 decrypt failed, block size %lu:\nInput:", fprintf(stderr, "CFB8 decrypt failed, block size %lu:\nInput:",
block); (unsigned long) block);
tstring_print_hex(ciphertext); tstring_print_hex(ciphertext);
fprintf(stderr, "\nOutput: "); fprintf(stderr, "\nOutput: ");
print_hex(length, data2); print_hex(length, data2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment