From 388489cbb302cb86ee0fd4927243a24525dfd5ee Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 5 Jan 2018 04:28:56 +0000 Subject: [PATCH] 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. --- symm/rijndael-mktab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ---------------------------------------------------------*/ -- 2.11.0