aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 18:02:00 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 18:02:00 +0200
commit72111e7a53eaad7bea841ab8b09e70642bde00ae (patch)
tree016e0326b794f8a5b9cc03139b8a5ab094ed7411 /config.mk
parentMake it possible for libhashsum_state to grow in future versions (diff)
downloadlibhashsum-72111e7a53eaad7bea841ab8b09e70642bde00ae.tar.gz
libhashsum-72111e7a53eaad7bea841ab8b09e70642bde00ae.tar.bz2
libhashsum-72111e7a53eaad7bea841ab8b09e70642bde00ae.tar.xz
Add support for Keccak, SHA3, SHAKE, and RawSHAKE via libkeccak>=1.3 (this version introduced zerocopy)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk24
1 files changed, 18 insertions, 6 deletions
diff --git a/config.mk b/config.mk
index 5b5e94f..2e3e31a 100644
--- a/config.mk
+++ b/config.mk
@@ -14,17 +14,14 @@ CPPFLAGS_LIBSHA1 =
LDFLAGS_LIBSHA2 = -lsha2
CPPFLAGS_LIBSHA2 =
+LDFLAGS_LIBKECCAK = -lkeccak
+CPPFLAGS_LIBKECCAK =
+
DEFAULT_SUPPORT = yes
# Shall either be "yes" or "no", the same applies below where this macro is used
-SUPPORT_SHA1 = $(DEFAULT_SUPPORT)
-# Includes SHA0 and SHA1, requires libsha1
-
-SUPPORT_SHA2 = $(DEFAULT_SUPPORT)
-# Includes SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256, requires libsha2
-
SUPPORT_MD2 = $(DEFAULT_SUPPORT)
# Support is built in
@@ -45,3 +42,18 @@ SUPPORT_RIPEMD_256 = $(DEFAULT_SUPPORT)
SUPPORT_RIPEMD_320 = $(DEFAULT_SUPPORT)
# Support is built in
+
+SUPPORT_SHA1 = $(DEFAULT_SUPPORT)
+# Includes SHA0 and SHA1, requires libsha1
+
+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
+
+SUPPORT_SHAKE = $(DEFAULT_SUPPORT)
+# Includes SHAKE224, SHAKE256, SHAKE384, and SHAKE512, requires libkeccak>=1.2
+
+SUPPORT_RAWSHAKE = $(DEFAULT_SUPPORT)
+# Includes RawSHAKE224, RawSHAKE256, RawSHAKE384, and RawSHAKE512, requires libkeccak>=1.2