projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure.ac: Replace with a new version.
[u/mdw/catacomb]
/
rijndael.c
diff --git
a/rijndael.c
b/rijndael.c
index
261823c
..
9eb5f21
100644
(file)
--- a/
rijndael.c
+++ b/
rijndael.c
@@
-89,7
+89,7
@@
void rijndael_eblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst)
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
- uint32 *w = k->w;
+
const
uint32 *w = k->w;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
aa = a; bb = b; cc = c; dd = d;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
aa = a; bb = b; cc = c; dd = d;
@@
-124,7
+124,7
@@
void rijndael_dblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst)
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
- uint32 *w = k->wi;
+
const
uint32 *w = k->wi;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
aa = a; bb = b; cc = c; dd = d;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
aa = a; bb = b; cc = c; dd = d;