diff options
Diffstat (limited to 'src/include/ipxe/md5.h')
-rw-r--r-- | src/include/ipxe/md5.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/ipxe/md5.h b/src/include/ipxe/md5.h new file mode 100644 index 0000000..c3dfeb7 --- /dev/null +++ b/src/include/ipxe/md5.h @@ -0,0 +1,24 @@ +#ifndef _IPXE_MD5_H +#define _IPXE_MD5_H + +FILE_LICENCE ( GPL2_OR_LATER ); + +struct digest_algorithm; + +#include <stdint.h> + +#define MD5_DIGEST_SIZE 16 +#define MD5_BLOCK_WORDS 16 +#define MD5_HASH_WORDS 4 + +struct md5_ctx { + u32 hash[MD5_HASH_WORDS]; + u32 block[MD5_BLOCK_WORDS]; + u64 byte_count; +}; + +#define MD5_CTX_SIZE sizeof ( struct md5_ctx ) + +extern struct digest_algorithm md5_algorithm; + +#endif /* _IPXE_MD5_H */ |