diff options
Diffstat (limited to 'crypto/ripemd.h')
-rw-r--r-- | crypto/ripemd.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/crypto/ripemd.h b/crypto/ripemd.h new file mode 100644 index 000000000000..2858e2266bd6 --- /dev/null +++ b/crypto/ripemd.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * Common values for RIPEMD algorithms | ||
3 | */ | ||
4 | |||
5 | #ifndef _CRYPTO_RMD_H | ||
6 | #define _CRYPTO_RMD_H | ||
7 | |||
8 | #define RMD128_DIGEST_SIZE 16 | ||
9 | #define RMD128_BLOCK_SIZE 64 | ||
10 | |||
11 | #define RMD160_DIGEST_SIZE 20 | ||
12 | #define RMD160_BLOCK_SIZE 64 | ||
13 | |||
14 | #define RMD256_DIGEST_SIZE 32 | ||
15 | #define RMD256_BLOCK_SIZE 64 | ||
16 | |||
17 | #define RMD320_DIGEST_SIZE 40 | ||
18 | #define RMD320_BLOCK_SIZE 64 | ||
19 | |||
20 | #define RMD_H0 0x67452301UL | ||
21 | #define RMD_H1 0xefcdab89UL | ||
22 | #define RMD_H2 0x98badcfeUL | ||
23 | #define RMD_H3 0x10325476UL | ||
24 | #define RMD_H4 0xc3d2e1f0UL | ||
25 | |||
26 | #endif | ||