From: Mark Wooding Date: Fri, 5 Jan 2018 04:28:56 +0000 (+0000) Subject: symm/rijndael-mktab.c: Produce more round constants. X-Git-Tag: 2.4.2~2 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/388489cbb302cb86ee0fd4927243a24525dfd5ee symm/rijndael-mktab.c: Produce more round constants. We don't have enough for large blocks and/or small keys. We need 15*8 = 120 words of keys for 256-bit Rijndael, and if we have only a 32-bit key then we'll need 120 round constants. So generate them all. --- diff --git a/symm/rijndael-mktab.c b/symm/rijndael-mktab.c index 182ae327..34350689 100644 --- a/symm/rijndael-mktab.c +++ b/symm/rijndael-mktab.c @@ -38,7 +38,7 @@ static octet s[256], si[256]; static uint32 t[4][256], ti[4][256]; static uint32 u[4][256]; -static octet rc[32]; +static octet rc[120]; /*----- Main code ---------------------------------------------------------*/