summaryrefslogtreecommitdiff
path: root/src/aes
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-07 09:49:00 -0800
committerKeith Packard <keithp@keithp.com>2013-12-07 09:49:00 -0800
commit44249a9262a16ed103aedf30a300003fc2a17579 (patch)
treefe3a533230b1e26abec78481b138e6d23e0e591e /src/aes
parentcdb32b1717db4e8cb8cf94d810e74ce2b569566b (diff)
altos: Nothing in altos uses AES decryption, so don't compile it
Saves a bit of space where AES is used, and avoids some compiler warnings. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/aes')
-rw-r--r--src/aes/ao_aes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/aes/ao_aes.c b/src/aes/ao_aes.c
index 71ffadb1..52463f5d 100644
--- a/src/aes/ao_aes.c
+++ b/src/aes/ao_aes.c
@@ -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];