md5.h 497 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _CRYPTO_MD5_H
  3. #define _CRYPTO_MD5_H
  4. #include <linux/types.h>
  5. #define MD5_DIGEST_SIZE 16
  6. #define MD5_HMAC_BLOCK_SIZE 64
  7. #define MD5_BLOCK_WORDS 16
  8. #define MD5_HASH_WORDS 4
  9. #define MD5_H0 0x67452301UL
  10. #define MD5_H1 0xefcdab89UL
  11. #define MD5_H2 0x98badcfeUL
  12. #define MD5_H3 0x10325476UL
  13. extern const u8 md5_zero_message_hash[MD5_DIGEST_SIZE];
  14. struct md5_state {
  15. u32 hash[MD5_HASH_WORDS];
  16. u32 block[MD5_BLOCK_WORDS];
  17. u64 byte_count;
  18. };
  19. #endif