#include <crypto/internal/hash.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/types.h>
#include <asm/byteorder.h>
#include "ripemd.h"
Go to the source code of this file.
|
#define | K1 RMD_K1 |
|
#define | K2 RMD_K2 |
|
#define | K3 RMD_K3 |
|
#define | K4 RMD_K4 |
|
#define | K5 RMD_K5 |
|
#define | KK1 RMD_K6 |
|
#define | KK2 RMD_K7 |
|
#define | KK3 RMD_K8 |
|
#define | KK4 RMD_K9 |
|
#define | KK5 RMD_K1 |
|
#define | F1(x, y, z) (x ^ y ^ z) /* XOR */ |
|
#define | F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ |
|
#define | F3(x, y, z) ((x | ~y) ^ z) |
|
#define | F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ |
|
#define | F5(x, y, z) (x ^ (y | ~z)) |
|
#define | ROUND(a, b, c, d, e, f, k, x, s) |
|
#define F1 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (x ^ y ^ z) /* XOR */ |
#define F2 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (z ^ (x & (y ^ z))) /* x ? y : z */ |
#define F3 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x | ~y) ^ z) |
#define F4 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (y ^ (z & (x ^ y))) /* z ? x : y */ |
#define F5 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (x ^ (y | ~z)) |
Value:{ \
(
a) = rol32((
a), (
s)) + (
e); \
}
Definition at line 48 of file rmd320.c.
MODULE_DESCRIPTION |
( |
"RIPEMD-320 Message Digest" |
| ) |
|
module_exit |
( |
rmd320_mod_fini |
| ) |
|
module_init |
( |
rmd320_mod_init |
| ) |
|