#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/cryptohash.h>
Go to the source code of this file.
|
#define | F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) |
|
#define | G(x, y, z) (((x) & (y)) + (((x) ^ (y)) & (z))) |
|
#define | H(x, y, z) ((x) ^ (y) ^ (z)) |
|
#define | ROUND(f, a, b, c, d, x, s) (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s))) |
|
#define | K1 0 |
|
#define | K2 013240474631UL |
|
#define | K3 015666365641UL |
|
#define F |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((z) ^ ((x) & ((y) ^ (z)))) |
#define G |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) & (y)) + (((x) ^ (y)) & (z))) |
#define H |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x) ^ (y) ^ (z)) |
#define K2 013240474631UL |
#define K3 015666365641UL |
#define ROUND |
( |
|
f, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
x, |
|
|
|
s |
|
) |
| (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s))) |