projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9eaf917
)
altos/test: Fix AES key format in test code
author
Keith Packard
<keithp@keithp.com>
Sun, 23 Jul 2017 23:47:40 +0000
(16:47 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 23 Jul 2017 23:47:40 +0000
(16:47 -0700)
Use temp variable instead of stepping on the AES name.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/test/ao_aes_test.c
patch
|
blob
|
history
diff --git
a/src/test/ao_aes_test.c
b/src/test/ao_aes_test.c
index 4b65df8d8d8716f4f50ddb4ff368f4ccbc7b3ccd..135c6f1a4c6ce0a86d09c5bcfdacadeeeb251294 100644
(file)
--- 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);