altos: More work on AES bits
[fw/altos] / src / ao_radio_cmac.c
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" },