summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gpxe/md5.h')
-rw-r--r--src/include/gpxe/md5.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gpxe/md5.h b/src/include/gpxe/md5.h
index f82c94625..304a0e646 100644
--- a/src/include/gpxe/md5.h
+++ b/src/include/gpxe/md5.h
@@ -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 */