diff options
author | Keith Packard <keithp@keithp.com> | 2011-07-15 18:51:33 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-27 12:33:46 -0700 |
commit | a731d240f802d37524ce84c3c6acf22bcda4d522 (patch) | |
tree | 54a7e25a354c43ceb32c1feb651acf18432dcd5c /src/core | |
parent | f145be3fc4ee94fdb5c1e2406b6c11d38bdbbd9b (diff) |
altos: Start work on AES and raw radio interfaces.
We probably don't want this raw radio interface, but it's a start.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ao.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 0cff0436..0275cad1 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -1629,4 +1629,30 @@ ao_companion_init(void); void ao_lcd_init(void); +/* ao_aes.c */ + +__xdata uint8_t ao_aes_mutex; + +enum ao_aes_mode { + ao_aes_mode_cbc_mac +}; + +#if HAS_AES +void +ao_aes_isr(void) __interrupt 4; +#endif + +void +ao_aes_set_mode(enum ao_aes_mode mode); + +void +ao_aes_set_key(__xdata uint8_t *in); + +void +ao_aes_run(__xdata uint8_t *in, + __xdata uint8_t *out); + +void +ao_aes_init(void); + #endif /* _AO_H_ */ |