From: Jonathan McDowell Date: Thu, 5 Sep 2019 13:18:33 +0000 (+0100) Subject: Add MD5_DIGEST_SIZE to our local MD5 implementation header X-Git-Tag: onak-0.6.0~14 X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=39a6e85be51e4bfb04d08d07b8b84a753e6b9765 Add MD5_DIGEST_SIZE to our local MD5 implementation header This is present in libnettle and has been made use of recently to avoid a hard coded digest length value. --- diff --git a/md5.h b/md5.h index 92f45db..3946fc7 100644 --- a/md5.h +++ b/md5.h @@ -26,6 +26,9 @@ #include 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 {