Skip to content

Commit 4675f7b

Browse files
Remove unused room from AESKEY variable
The original LMIC AES implementation uses this variable to store 10x16 bytes of round keys, but for the other implementations (only IDEETRON right now) this is only used to store the main key. In the latter case, this variable only needs to be 16 bytes long, saving 160 bytes of RAM.
1 parent 89c28c5 commit 4675f7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aes/other.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
// This should be defined elsewhere
3535
void lmic_aes_encrypt(u1_t *data, u1_t *key);
3636

37-
// global area for passing parameters (aux, key) and for storing round keys
37+
// global area for passing parameters (aux, key)
3838
u4_t AESAUX[16/sizeof(u4_t)];
39-
u4_t AESKEY[11*16/sizeof(u4_t)];
39+
u4_t AESKEY[16/sizeof(u4_t)];
4040

4141
// Shift the given buffer left one bit
4242
static void shift_left(xref2u1_t buf, u1_t len) {

0 commit comments

Comments
 (0)