diff options
author | Keith Packard <keithp@keithp.com> | 2011-07-20 23:46:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-27 12:33:46 -0700 |
commit | 776df9ce2e7b4fa5cedda326988e66c614299af4 (patch) | |
tree | bf516c8f3eca55a8d4387c8cfd5fb3468d336c7b /src/core/ao.h | |
parent | bd0bf00081bb24af5cd67a9351b0b0c1a041d0d3 (diff) |
altos: Get AES CBC-MAC packet transfers running
This just has simple command-line based packet transfers for testing.
This also adds special ao_telelaunch bits where the launch control
code will live.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r-- | src/core/ao.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 2394d401..2898852b 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -1633,6 +1633,10 @@ ao_lcd_init(void); __xdata uint8_t ao_aes_mutex; +/* AES keys and blocks are 128 bits */ + +#define AO_AES_LEN 16 + enum ao_aes_mode { ao_aes_mode_cbc_mac }; @@ -1649,12 +1653,20 @@ void ao_aes_set_key(__xdata uint8_t *in); void +ao_aes_zero_iv(void); + +void ao_aes_run(__xdata uint8_t *in, __xdata uint8_t *out); void ao_aes_init(void); +/* ao_radio_cmac.c */ + +void +ao_radio_cmac_init(void); + /* ao_launch.c */ void ao_launch_init(void); |