X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/45c0fd363937c6e9b05da04a9167e9912c05ca0c..097fb6f2f97575ce17738b4afb3216e9492de2b4:/rijndael192.c diff --git a/rijndael192.c b/rijndael192.c index 4b4c034..aef5955 100644 --- a/rijndael192.c +++ b/rijndael192.c @@ -94,7 +94,7 @@ void rijndael192_eblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst) { uint32 a = s[0], b = s[1], c = s[2], d = s[3], e = s[4], f = s[5]; uint32 aa, bb, cc, dd, ee, ff; - uint32 *w = k->w; + const uint32 *w = k->w; a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++; e ^= *w++; f ^= *w++; aa = a; bb = b; cc = c; dd = d; ee = e; ff = f; @@ -127,7 +127,7 @@ void rijndael192_dblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst) { uint32 a = s[0], b = s[1], c = s[2], d = s[3], e = s[4], f = s[5]; uint32 aa, bb, cc, dd, ee, ff; - uint32 *w = k->wi; + const uint32 *w = k->wi; a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++; e ^= *w++; f ^= *w++; aa = a; bb = b; cc = c; dd = d; ee = e; ff = f;