From 48a8ae2d38ecad5aa84b2158045c6a2fd8abe5ab Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 23 Oct 2022 16:48:05 -0700 Subject: [PATCH] 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 --- src/aes/ao_aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aes/ao_aes.c b/src/aes/ao_aes.c index 0bc8188e..ce87e3a8 100644 --- 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 iv[16/4]; +static word32 iv[32/4]; void ao_aes_set_mode(enum ao_aes_mode mode) -- 2.30.2