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.
2006-11-15 05:22:22 +01:00
|
|
|
#ifndef _GPXE_MD5_H
|
|
|
|
#define _GPXE_MD5_H
|
|
|
|
|
2007-01-30 15:55:17 +01:00
|
|
|
struct crypto_algorithm;
|
2006-11-15 05:22:22 +01:00
|
|
|
|
2007-02-01 06:48:56 +01:00
|
|
|
#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 )
|
|
|
|
|
2007-01-30 15:55:17 +01:00
|
|
|
extern struct crypto_algorithm md5_algorithm;
|
2006-11-15 05:22:22 +01:00
|
|
|
|
|
|
|
#endif /* _GPXE_MD5_H */
|