summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9eaf917)
Use temp variable instead of stepping on the AES name.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include "../aes/ao_aes_tables.c"
#include "../aes/ao_aes.c"
#include "../aes/ao_aes_tables.c"
#include "../aes/ao_aes.c"
+static uint8_t my_key[64];
static uint8_t text[16];
static uint8_t cbc[16];
static uint8_t text[16];
static uint8_t cbc[16];
ao_aes_init();
ao_aes_set_mode(ao_aes_mode_cbc_mac);
ao_aes_init();
ao_aes_set_mode(ao_aes_mode_cbc_mac);
+ ao_aes_set_key(my_key);
ao_aes_zero_iv();
ao_aes_run(text, cbc);
ao_aes_zero_iv();
ao_aes_run(text, cbc);