Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _CRYPTO_MD5_H
0003 #define _CRYPTO_MD5_H
0004 
0005 #include <linux/types.h>
0006 
0007 #define MD5_DIGEST_SIZE     16
0008 #define MD5_HMAC_BLOCK_SIZE 64
0009 #define MD5_BLOCK_WORDS     16
0010 #define MD5_HASH_WORDS      4
0011 
0012 #define MD5_H0  0x67452301UL
0013 #define MD5_H1  0xefcdab89UL
0014 #define MD5_H2  0x98badcfeUL
0015 #define MD5_H3  0x10325476UL
0016 
0017 extern const u8 md5_zero_message_hash[MD5_DIGEST_SIZE];
0018 
0019 struct md5_state {
0020     u32 hash[MD5_HASH_WORDS];
0021     u32 block[MD5_BLOCK_WORDS];
0022     u64 byte_count;
0023 };
0024 
0025 #endif