Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
lib
/
halfmd4.c
diff --git
a/kernel/lib/halfmd4.c
b/kernel/lib/halfmd4.c
index
a8fe627
..
137e861
100644
(file)
--- a/
kernel/lib/halfmd4.c
+++ b/
kernel/lib/halfmd4.c
@@
-1,6
+1,7
@@
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/cryptohash.h>
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/cryptohash.h>
+#include <linux/bitops.h>
/* F, G and H are basic MD4 functions: selection, majority, parity */
#define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
/* F, G and H are basic MD4 functions: selection, majority, parity */
#define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
@@
-14,7
+15,7
@@
* Rotation is separate from addition to prevent recomputation
*/
#define ROUND(f, a, b, c, d, x, s) \
* Rotation is separate from addition to prevent recomputation
*/
#define ROUND(f, a, b, c, d, x, s) \
- (a += f(b, c, d) + x, a =
(a << s) | (a >> (32 - s)
))
+ (a += f(b, c, d) + x, a =
rol32(a, s
))
#define K1 0
#define K2 013240474631UL
#define K3 015666365641UL
#define K1 0
#define K2 013240474631UL
#define K3 015666365641UL