projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add config and pyro tabs to graph widget
[fw/altos]
/
src
/
aes
/
ao_aes.c
diff --git
a/src/aes/ao_aes.c
b/src/aes/ao_aes.c
index fd90c5bf3ee03fa0c3435db43e5a4d3fea043b31..ce87e3a80bf491c09cd6f11bd760e30988c99dd2 100644
(file)
--- a/
src/aes/ao_aes.c
+++ b/
src/aes/ao_aes.c
@@
-362,7
+362,7
@@
uint8_t ao_aes_mutex;
static word32 key[16/4];
static roundkey rkk;
static word32 key[16/4];
static roundkey rkk;
-static word32 iv[
16
/4];
+static word32 iv[
32
/4];
void
ao_aes_set_mode(enum ao_aes_mode mode)
void
ao_aes_set_mode(enum ao_aes_mode mode)
@@
-372,7
+372,7
@@
ao_aes_set_mode(enum ao_aes_mode mode)
}
void
}
void
-ao_aes_set_key(
__xdata
uint8_t *in)
+ao_aes_set_key(uint8_t *in)
{
memcpy(key, in, 16);
xrijndaelKeySched((word32 *) key, 128, 128, &rkk);
{
memcpy(key, in, 16);
xrijndaelKeySched((word32 *) key, 128, 128, &rkk);
@@
-385,8
+385,8
@@
ao_aes_zero_iv(void)
}
void
}
void
-ao_aes_run(
__xdata
uint8_t *in,
-
__xdata
uint8_t *out)
+ao_aes_run(uint8_t *in,
+ uint8_t *out)
{
uint8_t i;
uint8_t *_iv = (uint8_t *) iv;
{
uint8_t i;
uint8_t *_iv = (uint8_t *) iv;