projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f5de3
)
Add MD5_DIGEST_SIZE to our local MD5 implementation header
author
Jonathan McDowell
<noodles@earth.li>
Thu, 5 Sep 2019 13:18:33 +0000
(14:18 +0100)
committer
Jonathan McDowell
<noodles@earth.li>
Thu, 5 Sep 2019 15:02:37 +0000
(16:02 +0100)
This is present in libnettle and has been made use of recently to
avoid a hard coded digest length value.
md5.h
patch
|
blob
|
history
diff --git
a/md5.h
b/md5.h
index 92f45dbdc4c789e75a835761a5ddd7774c9f8c42..3946fc79cd037f51f10a1c90c9365bff246cba76 100644
(file)
--- a/
md5.h
+++ b/
md5.h
@@
-26,6
+26,9
@@
#include <sys/types.h>
typedef size_t md5_uintptr;
+/* Length in bytes of the MD5 digest */
+#define MD5_DIGEST_SIZE 16
+
/* Structure to save state of computation between the single steps. */
struct md5_ctx
{