summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/ao_aes_test.c4
-rw-r--r--src/test/ao_int64_test.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ao_aes_test.c b/src/test/ao_aes_test.c
index 4b65df8d..135c6f1a 100644
--- a/src/test/ao_aes_test.c
+++ b/src/test/ao_aes_test.c
@@ -30,7 +30,7 @@
#include "../aes/ao_aes_tables.c"
#include "../aes/ao_aes.c"
-static uint8_t key[16];
+static uint8_t my_key[64];
static uint8_t text[16];
static uint8_t cbc[16];
@@ -41,7 +41,7 @@ main (int argc, char **argv)
ao_aes_init();
ao_aes_set_mode(ao_aes_mode_cbc_mac);
- ao_aes_set_key(key);
+ ao_aes_set_key(my_key);
ao_aes_zero_iv();
ao_aes_run(text, cbc);
diff --git a/src/test/ao_int64_test.c b/src/test/ao_int64_test.c
index 07538ee0..d329f67b 100644
--- a/src/test/ao_int64_test.c
+++ b/src/test/ao_int64_test.c
@@ -34,7 +34,7 @@ int errors;
c = ao_cast64(&ao_r); \
if (c != r) { \
printf ("trial %4d: %lld " #func mod " %lld = %lld (should be %lld)\n", \
- trial, (int64_t) (a), (int64_t) b, c, r); \
+ trial, (long long) (a), (long long) b, (long long) c, (long long) r); \
++errors; \
} \
} while (0)