X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fciphers_def.h;fp=lib%2Fsilccrypt%2Fciphers_def.h;h=c550827e4ea30ada95443633df11c4fb2e7ed5ed;hb=3bbfa63eae4bc90e68a9ceaaa622e18b70ac1cb3;hp=19716f4805f6802ec99e0b7579a9b07b088af17d;hpb=35c7aa8297422810ab760437c4a10d70d86480be;p=silc.git diff --git a/lib/silccrypt/ciphers_def.h b/lib/silccrypt/ciphers_def.h index 19716f48..c550827e 100644 --- a/lib/silccrypt/ciphers_def.h +++ b/lib/silccrypt/ciphers_def.h @@ -27,8 +27,8 @@ typedef SilcUInt32 u32; typedef SilcUInt32 uint_32t; typedef SilcUInt8 uint_8t; -#define rotr(x, nr) (((x) >> ((int)(nr))) | ((x) << (32 - (int)(nr)))) -#define rotl(x, nr) (((x) << ((int)(nr))) | ((x) >> (32 - (int)(nr)))) +#define rotr(x, nr) silc_ror(x, nr) +#define rotl(x, nr) silc_rol(x, nr) #define byte(x, nr) ((x) >> (nr * 8) & 255) /* Byte key to words */