projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silccrypt
/
ciphers_def.h
diff --git
a/lib/silccrypt/ciphers_def.h
b/lib/silccrypt/ciphers_def.h
index 19716f4805f6802ec99e0b7579a9b07b088af17d..c550827e4ea30ada95443633df11c4fb2e7ed5ed 100644
(file)
--- 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;
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 */
#define byte(x, nr) ((x) >> (nr * 8) & 255)
/* Byte key to words */