#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 | KK1 RMD_K6 |
|
#define | KK2 RMD_K7 |
|
#define | KK3 RMD_K8 |
|
#define | KK4 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 | ROUND(a, b, c, d, 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 ROUND |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
f, |
|
|
|
k, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
MODULE_DESCRIPTION |
( |
"RIPEMD-128 Message Digest" |
| ) |
|
module_exit |
( |
rmd128_mod_fini |
| ) |
|
module_init |
( |
rmd128_mod_init |
| ) |
|