Commit f13fd113 authored by Niels Möller's avatar Niels Möller

New macro, ROTL32.

parent 60f3e677
2012-03-31 Niels Möller <nisse@lysator.liu.se>
* macros.h (ROTL32): New macro, to replace (almost) all other
rotation macros.
2012-03-30 Niels Möller <nisse@lysator.liu.se>
* nettle-internal.c (nettle_salsa20): Cipher struct for
......
......@@ -119,6 +119,8 @@ do { \
(dst) += (blocksize), \
(src) += (blocksize)) )
#define ROTL32(n,x) ((((x))<<(n)) | (((x))>>(32-(n))))
/* Requires that size >= 2 */
#define INCREMENT(size, ctr) \
do { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment