hashes.c (d585a021c0b10b0477d6b608c53e1feb8cde0507) hashes.c (f466c6fdb3b1f043ff1977a8d2a1d0cd4dc164fa)
1
2/*
3 * Keyed 32-bit hash function using TEA in a Davis-Meyer function
4 * H0 = Key
5 * Hi = E Mi(Hi-1) + Hi-1
6 *
7 * (see Applied Cryptography, 2nd edition, p448).
8 *

--- 5 unchanged lines hidden (view full) ---

14
15//
16// keyed_hash
17// yura_hash
18// r5_hash
19//
20
21#include <linux/kernel.h>
1
2/*
3 * Keyed 32-bit hash function using TEA in a Davis-Meyer function
4 * H0 = Key
5 * Hi = E Mi(Hi-1) + Hi-1
6 *
7 * (see Applied Cryptography, 2nd edition, p448).
8 *

--- 5 unchanged lines hidden (view full) ---

14
15//
16// keyed_hash
17// yura_hash
18// r5_hash
19//
20
21#include <linux/kernel.h>
22#include <linux/reiserfs_fs.h>
22#include "reiserfs.h"
23#include <asm/types.h>
24
25#define DELTA 0x9E3779B9
26#define FULLROUNDS 10 /* 32 is overkill, 16 is strong crypto */
27#define PARTROUNDS 6 /* 6 gets complete mixing */
28
29/* a, b, c, d - data; h0, h1 - accumulated hash */
30#define TEACORE(rounds) \

--- 152 unchanged lines hidden ---
23#include <asm/types.h>
24
25#define DELTA 0x9E3779B9
26#define FULLROUNDS 10 /* 32 is overkill, 16 is strong crypto */
27#define PARTROUNDS 6 /* 6 gets complete mixing */
28
29/* a, b, c, d - data; h0, h1 - accumulated hash */
30#define TEACORE(rounds) \

--- 152 unchanged lines hidden ---