mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +03:00
Make context sizes available for statically-allocated structures
This commit is contained in:
@@ -3,6 +3,20 @@
|
||||
|
||||
struct crypto_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 crypto_algorithm md5_algorithm;
|
||||
|
||||
#endif /* _GPXE_MD5_H */
|
||||
|
||||
Reference in New Issue
Block a user