altos: Nothing in altos uses AES decryption, so don't compile it
authorKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:49:00 +0000 (09:49 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:49:00 +0000 (09:49 -0800)
Saves a bit of space where AES is used, and avoids some compiler warnings.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/aes/ao_aes.c

index 71ffadb19e658cccb72826d49aeddc1b51d25601..52463f5d3b2f202be30b49b19d35f7601b3518c5 100644 (file)
@@ -310,6 +310,10 @@ void xrijndaelEncrypt(word32 block[], roundkey *rkk)
   xKeyAddition(block, block2, rp, BC);
 }
 
+#if NOTUSED
+/* We don't actually need this in AltOS, so don't bother including it */
+
+/* Decryption of one block. */
 static
 void xrijndaelDecrypt(word32 block[], roundkey *rkk)
 {
@@ -352,6 +356,7 @@ void xrijndaelDecrypt(word32 block[], roundkey *rkk)
 
   xKeyAddition(block, block, rp, BC);
 }
+#endif
 
 uint8_t ao_aes_mutex;
 static uint8_t key[16];