altos: More work on AES bits
authorKeith Packard <keithp@keithp.com>
Sat, 16 Jul 2011 21:25:01 +0000 (14:25 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Aug 2011 19:33:46 +0000 (12:33 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_radio_cmac.c
src/core/ao.h
src/telelaunch-v0.1/Makefile.defs

index 4b118d02ec0b73ce8206c5f3ad63c44e46a1f360..9b406a2190969db1ba2ef497c78911c88de00446 100644 (file)
@@ -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 <byte> ...\0Set AES-CMAC key." },
        { ao_radio_cmac_send,   "s <length>\0Send AES-CMAC packet. Bytes to send follow on next line" },
index 0275cad1e9536278aa7e06ad15303f190e20f311..2394d401dcadf04770f6c21ab173ce9466bb58e2 100644 (file)
@@ -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_ */
index 0c7efb5245a91392b91ac3692c11e1ea13996f1f..e4934ffa214dea97e96a2afb3e7bcbdcc8850b0f 100644 (file)
@@ -4,6 +4,7 @@ SRC = \
        $(TLAUNCH_BASE_SRC) \
        $(SPI_DRIVER_SRC) \
        $(EE_DRIVER_SRC) \
+       ao_launch.c \
        $(DBG_SRC)
 
 PRODUCT=TeleLaunch-v0.1