projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm: Figure out available flash space based on chip id registers
[fw/altos]
/
src
/
aes
/
ao_aes.c
diff --git
a/src/aes/ao_aes.c
b/src/aes/ao_aes.c
index 71ffadb19e658cccb72826d49aeddc1b51d25601..a04174c6ec12b1bf9eec44b796bc6e57112dcdab 100644
(file)
--- 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);
}
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)
{
static
void xrijndaelDecrypt(word32 block[], roundkey *rkk)
{
@@
-352,6
+356,7
@@
void xrijndaelDecrypt(word32 block[], roundkey *rkk)
xKeyAddition(block, block, rp, BC);
}
xKeyAddition(block, block, rp, BC);
}
+#endif
uint8_t ao_aes_mutex;
static uint8_t key[16];
uint8_t ao_aes_mutex;
static uint8_t key[16];
@@
-362,6
+367,7
@@
static uint8_t iv[16];
void
ao_aes_set_mode(enum ao_aes_mode mode)
{
void
ao_aes_set_mode(enum ao_aes_mode mode)
{
+ (void) mode;
/* we only do CBC_MAC anyways... */
}
/* we only do CBC_MAC anyways... */
}