]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hmac/sha256: move size define to sha256.h
authorGrigori Goronzy <greg@chown.ath.cx>
Fri, 11 Mar 2022 23:51:21 +0000 (00:51 +0100)
committerGrigori Goronzy <greg@chown.ath.cx>
Tue, 15 Mar 2022 20:17:00 +0000 (21:17 +0100)
src/basic/hmac.h
src/fundamental/sha256.h

index a5682c439fe0ff3be1c324e99d6a3871fff6ec36..e58c1838a3deb67bff08962d2c9387a4312d5a1d 100644 (file)
@@ -4,7 +4,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 
-#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
index abc4167628d8d3d5e005e87f917c29bccd9af69b..e53197f2ef9b1c71da16483946a65d71136ce8f6 100644 (file)
@@ -8,6 +8,8 @@
 
 #include "types-fundamental.h"
 
+#define SHA256_DIGEST_SIZE 32
+
 struct sha256_ctx {
         uint32_t H[8];