summaryrefslogtreecommitdiff
path: root/serpent-decrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-11-12 20:55:19 +0100
committerNiels Möller <nisse@lysator.liu.se>2012-11-12 20:55:19 +0100
commitd20990fd971a18fab36df5d578647b1d9559574b (patch)
tree26710f3a06ca54eefac34476fda14687ff94913a /serpent-decrypt.c
parent83b7c95b68d60b79b63e3a840c7a6b6aaa17097a (diff)
downloadnettle-d20990fd971a18fab36df5d578647b1d9559574b.tar.gz
Renamed serpent-internal.h macros.
Diffstat (limited to 'serpent-decrypt.c')
-rw-r--r--serpent-decrypt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/serpent-decrypt.c b/serpent-decrypt.c
index a991255e..a7ae661c 100644
--- a/serpent-decrypt.c
+++ b/serpent-decrypt.c
@@ -438,16 +438,16 @@
/* In-place inverse linear transformation. */
#define LINEAR_TRANSFORMATION64_INVERSE(x0,x1,x2,x3) \
do { \
- x2 = ROTL64 (10, x2); \
- x0 = ROTL64 (27, x0); \
- x2 = x2 ^ x3 ^ RSHIFT64(7, x1); \
+ x2 = DROTL32 (10, x2); \
+ x0 = DROTL32 (27, x0); \
+ x2 = x2 ^ x3 ^ DRSHIFT32(7, x1); \
x0 = x0 ^ x1 ^ x3; \
- x3 = ROTL64 (25, x3); \
- x1 = ROTL64 (31, x1); \
- x3 = x3 ^ x2 ^ RSHIFT64(3, x0); \
+ x3 = DROTL32 (25, x3); \
+ x1 = DROTL32 (31, x1); \
+ x3 = x3 ^ x2 ^ DRSHIFT32(3, x0); \
x1 = x1 ^ x0 ^ x2; \
- x2 = ROTL64 (29, x2); \
- x0 = ROTL64 (19, x0); \
+ x2 = DROTL32 (29, x2); \
+ x0 = DROTL32 (19, x0); \
} while (0)
#define ROUND64_INVERSE(which, subkey, x0,x1,x2,x3, y0,y1,y2,y3) \