Skip to content

Commit 48a8ae2

Browse files
committed
altos: Increase AES IV buffer to hold maximum AES state
The compiler emits warnings if this buffer is only 16 bytes. I'm hoping that's because the max key size could be 256 bits instead of 128 bits? In any case, this makes the compiler happy. Signed-off-by: Keith Packard <[email protected]>
1 parent 3735e1e commit 48a8ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aes/ao_aes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ uint8_t ao_aes_mutex;
362362
static word32 key[16/4];
363363
static roundkey rkk;
364364

365-
static word32 iv[16/4];
365+
static word32 iv[32/4];
366366

367367
void
368368
ao_aes_set_mode(enum ao_aes_mode mode)

0 commit comments

Comments
 (0)