blob: 327deac963c08f01de978ba5fd02ee4da10a70ea [file] [log] [blame]
Max Vozeler7d6f75e2010-01-17 21:55:31 +11001#ifndef _CRYPTO_MD5_H
2#define _CRYPTO_MD5_H
3
4#include <linux/types.h>
5
6#define MD5_DIGEST_SIZE 16
7#define MD5_HMAC_BLOCK_SIZE 64
8#define MD5_BLOCK_WORDS 16
9#define MD5_HASH_WORDS 4
10
LABBE Corentinf79f1f72015-05-17 12:54:12 +020011#define MD5_H0 0x67452301UL
12#define MD5_H1 0xefcdab89UL
13#define MD5_H2 0x98badcfeUL
14#define MD5_H3 0x10325476UL
15
LABBE Corentin0c4c78d2015-12-17 13:45:39 +010016extern const u8 md5_zero_message_hash[MD5_DIGEST_SIZE];
17
Max Vozeler7d6f75e2010-01-17 21:55:31 +110018struct md5_state {
19 u32 hash[MD5_HASH_WORDS];
20 u32 block[MD5_BLOCK_WORDS];
21 u64 byte_count;
22};
23
24#endif