summaryrefslogtreecommitdiff
path: root/serpent-set-key.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-03-31 21:43:55 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-03-31 21:43:55 +0200
commit8a56233b1ad911c1bdd1959cc2deb9c4f8afcbf1 (patch)
tree217d9bfd667ec5e505f84783524a95cdcf28e799 /serpent-set-key.c
parente4a28f551c96a7fe731fd47b5544169a19594462 (diff)
downloadnettle-8a56233b1ad911c1bdd1959cc2deb9c4f8afcbf1.tar.gz
Use ROTL32 in the serpent code.
Diffstat (limited to 'serpent-set-key.c')
-rw-r--r--serpent-set-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serpent-set-key.c b/serpent-set-key.c
index d03f50eb..3e29bd28 100644
--- a/serpent-set-key.c
+++ b/serpent-set-key.c
@@ -270,7 +270,7 @@
do { \
uint32_t _wn = (w)[(i)] ^ (w)[((i)+3)&7] ^ w[((i)+5)&7] \
^ w[((i)+7)&7] ^ PHI ^ (k)++; \
- ((w)[(i)] = ROL32(_wn, 11)); \
+ ((w)[(i)] = ROTL32(11, _wn)); \
} while (0)
/* Note: Increments k four times and keys once */