• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _GPXE_MD5_H
2 #define _GPXE_MD5_H
3 
4 FILE_LICENCE ( GPL2_OR_LATER );
5 
6 struct digest_algorithm;
7 
8 #include <stdint.h>
9 
10 #define MD5_DIGEST_SIZE		16
11 #define MD5_BLOCK_WORDS		16
12 #define MD5_HASH_WORDS		4
13 
14 struct md5_ctx {
15 	u32 hash[MD5_HASH_WORDS];
16 	u32 block[MD5_BLOCK_WORDS];
17 	u64 byte_count;
18 };
19 
20 #define MD5_CTX_SIZE sizeof ( struct md5_ctx )
21 
22 extern struct digest_algorithm md5_algorithm;
23 
24 #endif /* _GPXE_MD5_H */
25