X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/371e569c350575d3f9b41c71e2ff51de9ef62483..df3c4460d6b01d4f8b33119c795c1f7ca09bee1e:/sshaes.c?ds=sidebyside diff --git a/sshaes.c b/sshaes.c index 1dfb5f92..9eed7423 100644 --- a/sshaes.c +++ b/sshaes.c @@ -61,9 +61,9 @@ struct AESContext { int Nb, Nr; }; -static const unsigned char Sbox[256], Sboxinv[256]; -static const word32 E0[256], E1[256], E2[256], E3[256]; -static const word32 D0[256], D1[256], D2[256], D3[256]; +static const unsigned char Sbox[], Sboxinv[]; +static const word32 E0[], E1[], E2[], E3[]; +static const word32 D0[], D1[], D2[], D3[]; /* * Common macros in both the encryption and decryption routines. @@ -941,7 +941,7 @@ static const word32 D3[256] = { * bytes; each can be either 16 (128-bit), 24 (192-bit), or 32 * (256-bit). */ -void aes_setup(AESContext * ctx, int blocklen, +static void aes_setup(AESContext * ctx, int blocklen, unsigned char *key, int keylen) { int i, j, Nk, rconst;