projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
987157f
)
Keep RC5 bit shifts in [0..31]
author
Viktor Dukhovni
<openssl-users@dukhovni.org>
Fri, 29 Jan 2016 00:04:49 +0000
(19:04 -0500)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Fri, 29 Jan 2016 02:39:46 +0000
(21:39 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/rc5/rc5_locl.h
patch
|
blob
|
history
diff --git
a/crypto/rc5/rc5_locl.h
b/crypto/rc5/rc5_locl.h
index 994444033401ec86e1e7900622ba4c407c11b7c9..6b34f923a662e162056ffd4987eb7c2b35cd7552 100644
(file)
--- a/
crypto/rc5/rc5_locl.h
+++ b/
crypto/rc5/rc5_locl.h
@@
-170,10
+170,10
@@
# endif
#endif
#ifndef ROTATE_l32
-# define ROTATE_l32(a,n) (((a)<<(n&0x1f))|(((a)&0xffffffff)>>(
32-(n&0x1f)
)))
+# define ROTATE_l32(a,n) (((a)<<(n&0x1f))|(((a)&0xffffffff)>>(
(32-n)&0x1f
)))
#endif
#ifndef ROTATE_r32
-# define ROTATE_r32(a,n) (((a)<<(
32-(n&0x1f)
))|(((a)&0xffffffff)>>(n&0x1f)))
+# define ROTATE_r32(a,n) (((a)<<(
(32-n)&0x1f
))|(((a)&0xffffffff)>>(n&0x1f)))
#endif
#define RC5_32_MASK 0xffffffffL