david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/gpxe/md5.h

25 lines
418 B
C

#ifndef _GPXE_MD5_H
#define _GPXE_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 /* _GPXE_MD5_H */