altos: Increase AES IV buffer to hold maximum AES state
authorKeith Packard <keithp@keithp.com>
Sun, 23 Oct 2022 23:48:05 +0000 (16:48 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 23 Oct 2022 23:49:10 +0000 (16:49 -0700)
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 <keithp@keithp.com>
src/aes/ao_aes.c

index 0bc8188e3d2ae68c7eca2b78a214b473ce34b712..ce87e3a80bf491c09cd6f11bd760e30988c99dd2 100644 (file)
@@ -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)