From bd0bf00081bb24af5cd67a9351b0b0c1a041d0d3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 16 Jul 2011 14:25:01 -0700 Subject: [PATCH] altos: More work on AES bits Signed-off-by: Keith Packard --- src/ao_radio_cmac.c | 9 +++++++++ src/core/ao.h | 4 ++++ src/telelaunch-v0.1/Makefile.defs | 1 + 3 files changed, 14 insertions(+) diff --git a/src/ao_radio_cmac.c b/src/ao_radio_cmac.c index 4b118d02..9b406a21 100644 --- a/src/ao_radio_cmac.c +++ b/src/ao_radio_cmac.c @@ -22,6 +22,7 @@ static __xdata uint8_t cmac_key[AO_CMAC_KEY_LEN]; static __xdata uint8_t cmac_data[AO_CMAC_MAX_LEN + AO_CMAC_KEY_LEN + 2 + AO_CMAC_KEY_LEN]; +static __pdata uint8_t ao_radio_cmac_len; static uint8_t getnibble(void) @@ -85,6 +86,14 @@ ao_radio_cmac_send(void) __reentrant ao_radio_send(cmac_data, ao_cmd_lex_i + AO_CMAC_KEY_LEN); } +static void +ao_radio_cmac_recv(void) __reentrant +{ + ao_cmd_hex(); + if (ao_cmd_status != ao_cmd_success) + return; +} + __code struct ao_cmds ao_radio_cmac_cmds[] = { { ao_radio_cmac_key, "k ...\0Set AES-CMAC key." }, { ao_radio_cmac_send, "s \0Send AES-CMAC packet. Bytes to send follow on next line" }, diff --git a/src/core/ao.h b/src/core/ao.h index 0275cad1..2394d401 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -1655,4 +1655,8 @@ ao_aes_run(__xdata uint8_t *in, void ao_aes_init(void); +/* ao_launch.c */ +void +ao_launch_init(void); + #endif /* _AO_H_ */ diff --git a/src/telelaunch-v0.1/Makefile.defs b/src/telelaunch-v0.1/Makefile.defs index 0c7efb52..e4934ffa 100644 --- a/src/telelaunch-v0.1/Makefile.defs +++ b/src/telelaunch-v0.1/Makefile.defs @@ -4,6 +4,7 @@ SRC = \ $(TLAUNCH_BASE_SRC) \ $(SPI_DRIVER_SRC) \ $(EE_DRIVER_SRC) \ + ao_launch.c \ $(DBG_SRC) PRODUCT=TeleLaunch-v0.1 -- 2.30.2