diff options
| author | Keith Packard <keithp@keithp.com> | 2017-07-23 16:47:40 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-07-23 16:47:40 -0700 | 
| commit | 52bbfa9cd46ca27a4de937e89d48246a4e94c8a6 (patch) | |
| tree | b83d01724092bf0757127277938a84c0402058fe /src/test | |
| parent | 9eaf917707287af57c2dadfc82d6d415b0964329 (diff) | |
altos/test: Fix AES key format in test code
Use temp variable instead of stepping on the AES name.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ao_aes_test.c | 4 | 
1 files changed, 2 insertions, 2 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); | 
