X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/45c0fd363937c6e9b05da04a9167e9912c05ca0c..df82bc85db06b9cd8917aec33aadaf151d9d4a46:/rijndael256.c diff --git a/rijndael256.c b/rijndael256.c index 3377009..27f06d7 100644 --- a/rijndael256.c +++ b/rijndael256.c @@ -103,7 +103,7 @@ void rijndael256_eblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst) uint32 a = s[0], b = s[1], c = s[2], d = s[3]; uint32 e = s[4], f = s[5], g = s[6], h = s[7]; uint32 aa, bb, cc, dd, ee, ff, gg, hh; - uint32 *w = k->w; + const uint32 *w = k->w; a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++; e ^= *w++; f ^= *w++; g ^= *w++; h ^= *w++; @@ -132,7 +132,7 @@ void rijndael256_dblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst) uint32 a = s[0], b = s[1], c = s[2], d = s[3]; uint32 e = s[4], f = s[5], g = s[6], h = s[7]; uint32 aa, bb, cc, dd, ee, ff, gg, hh; - uint32 *w = k->wi; + const uint32 *w = k->wi; a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++; e ^= *w++; f ^= *w++; g ^= *w++; h ^= *w++;