blob: cf9e9dec3d214e310b4288c3ee4f346037f32384 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Max Vozeler7d6f75e2010-01-17 21:55:31 +11002#ifndef _CRYPTO_MD5_H
3#define _CRYPTO_MD5_H
4
5#include <linux/types.h>
6
7#define MD5_DIGEST_SIZE 16
8#define MD5_HMAC_BLOCK_SIZE 64
9#define MD5_BLOCK_WORDS 16
10#define MD5_HASH_WORDS 4
11
LABBE Corentinf79f1f72015-05-17 12:54:12 +020012#define MD5_H0 0x67452301UL
13#define MD5_H1 0xefcdab89UL
14#define MD5_H2 0x98badcfeUL
15#define MD5_H3 0x10325476UL
16
LABBE Corentin0c4c78d2015-12-17 13:45:39 +010017extern const u8 md5_zero_message_hash[MD5_DIGEST_SIZE];
18
Max Vozeler7d6f75e2010-01-17 21:55:31 +110019struct md5_state {
20 u32 hash[MD5_HASH_WORDS];
21 u32 block[MD5_BLOCK_WORDS];
22 u64 byte_count;
23};
24
25#endif