From: Grigori Goronzy Date: Fri, 11 Mar 2022 23:51:21 +0000 (+0100) Subject: hmac/sha256: move size define to sha256.h X-Git-Tag: v251-rc1~139^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e560cf4f71bf237019d982603af3d6be86394788;p=thirdparty%2Fsystemd.git hmac/sha256: move size define to sha256.h --- diff --git a/src/basic/hmac.h b/src/basic/hmac.h index a5682c439fe..e58c1838a3d 100644 --- a/src/basic/hmac.h +++ b/src/basic/hmac.h @@ -4,7 +4,7 @@ #include #include -#define SHA256_DIGEST_SIZE 32 +#include "sha256.h" /* Unoptimized implementation based on FIPS 198. 'res' has to be allocated by * the caller. Prefer external OpenSSL functions, and use this only when diff --git a/src/fundamental/sha256.h b/src/fundamental/sha256.h index abc4167628d..e53197f2ef9 100644 --- a/src/fundamental/sha256.h +++ b/src/fundamental/sha256.h @@ -8,6 +8,8 @@ #include "types-fundamental.h" +#define SHA256_DIGEST_SIZE 32 + struct sha256_ctx { uint32_t H[8];