X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/e5b61a8dec3586f96d25bd3ef454176526ff0f69..8f2287ef5c05d496fcb9b012629af007fe56f897:/symm/rijndael-mktab.c diff --git a/symm/rijndael-mktab.c b/symm/rijndael-mktab.c index 91007cc7..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 ---------------------------------------------------------*/ @@ -331,11 +331,11 @@ const uint32 rijndael_u[4][256] = {\n\ /* --- Round constants --- */ rcon(); - fputs("\ + printf("\ /* --- The round constants --- */\n\ \n\ -const octet rijndael_rcon[32] = {\n\ - ", stdout); +const octet rijndael_rcon[%u] = {\n\ + ", (unsigned)sizeof(rc)); for (i = 0; i < sizeof(rc); i++) { printf("0x%02x", rc[i]); if (i == sizeof(rc) - 1)