Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/catacomb
[u/mdw/catacomb] / rijndael192.c
index 4b4c034..aef5955 100644 (file)
@@ -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;