aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 20:13:01 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 20:13:01 +0200
commitfebb5279f7bf3c86ec872c1b2ed1e024f73e64c5 (patch)
treeea6918fc1dcb29e11ce9399b8300a124cc0342cf /config.mk
parentAdd support for Keccak, SHA3, SHAKE, and RawSHAKE via libkeccak>=1.3 (this version introduced zerocopy) (diff)
downloadlibhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.gz
libhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.bz2
libhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.xz
Add BLAKE via libblake>=1.1 (this version introduced libblake_init())
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--config.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 2e3e31a..b415389 100644
--- a/config.mk
+++ b/config.mk
@@ -17,6 +17,9 @@ CPPFLAGS_LIBSHA2 =
LDFLAGS_LIBKECCAK = -lkeccak
CPPFLAGS_LIBKECCAK =
+LDFLAGS_LIBBLAKE = -lblake
+CPPFLAGS_LIBBLAKE =
+
DEFAULT_SUPPORT = yes
# Shall either be "yes" or "no", the same applies below where this macro is used
@@ -50,10 +53,22 @@ SUPPORT_SHA2 = $(DEFAULT_SUPPORT)
# Includes SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256, requires libsha2
SUPPORT_SHA3 = $(DEFAULT_SUPPORT)
-# Includes SHA3-224, SHA3-256, SHA3-384, and SHA3-512, requires libkeccak>=1.2
+# Includes SHA3-224, SHA3-256, SHA3-384, and SHA3-512, requires libkeccak>=1.3
SUPPORT_SHAKE = $(DEFAULT_SUPPORT)
-# Includes SHAKE224, SHAKE256, SHAKE384, and SHAKE512, requires libkeccak>=1.2
+# Includes SHAKE224, SHAKE256, SHAKE384, and SHAKE512, requires libkeccak>=1.3
SUPPORT_RAWSHAKE = $(DEFAULT_SUPPORT)
-# Includes RawSHAKE224, RawSHAKE256, RawSHAKE384, and RawSHAKE512, requires libkeccak>=1.2
+# Includes RawSHAKE224, RawSHAKE256, RawSHAKE384, and RawSHAKE512, requires libkeccak>=1.3
+
+SUPPORT_BLAKE224 = $(DEFAULT_SUPPORT)
+# Requires libblake>=1.1
+
+SUPPORT_BLAKE256 = $(DEFAULT_SUPPORT)
+# Requires libblake>=1.1
+
+SUPPORT_BLAKE384 = $(DEFAULT_SUPPORT)
+# Requires libblake>=1.1
+
+SUPPORT_BLAKE512 = $(DEFAULT_SUPPORT)
+# Requires libblake>=1.1