aboutsummaryrefslogtreecommitdiffstats
path: root/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 /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 '')
l---------mk/keccak=no.mk1
-rw-r--r--mk/keccak=yes.mk4
l---------mk/rawshake=no.mk1
-rw-r--r--mk/rawshake=yes.mk4
l---------mk/sha3=no.mk1
-rw-r--r--mk/sha3=yes.mk4
l---------mk/shake=no.mk1
-rw-r--r--mk/shake=yes.mk4
8 files changed, 20 insertions, 0 deletions
diff --git a/mk/keccak=no.mk b/mk/keccak=no.mk
new file mode 120000
index 0000000..54299a4
--- /dev/null
+++ b/mk/keccak=no.mk
@@ -0,0 +1 @@
+no \ No newline at end of file
diff --git a/mk/keccak=yes.mk b/mk/keccak=yes.mk
new file mode 100644
index 0000000..d35f3e2
--- /dev/null
+++ b/mk/keccak=yes.mk
@@ -0,0 +1,4 @@
+CPPFLAGS_KECCAK = -DSUPPORT_KECCAK
+
+CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK)
+LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK)
diff --git a/mk/rawshake=no.mk b/mk/rawshake=no.mk
new file mode 120000
index 0000000..54299a4
--- /dev/null
+++ b/mk/rawshake=no.mk
@@ -0,0 +1 @@
+no \ No newline at end of file
diff --git a/mk/rawshake=yes.mk b/mk/rawshake=yes.mk
new file mode 100644
index 0000000..d41ab71
--- /dev/null
+++ b/mk/rawshake=yes.mk
@@ -0,0 +1,4 @@
+CPPFLAGS_RAWSHAKE = -DSUPPORT_RAWSHAKE
+
+CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK)
+LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK)
diff --git a/mk/sha3=no.mk b/mk/sha3=no.mk
new file mode 120000
index 0000000..54299a4
--- /dev/null
+++ b/mk/sha3=no.mk
@@ -0,0 +1 @@
+no \ No newline at end of file
diff --git a/mk/sha3=yes.mk b/mk/sha3=yes.mk
new file mode 100644
index 0000000..3d255f5
--- /dev/null
+++ b/mk/sha3=yes.mk
@@ -0,0 +1,4 @@
+CPPFLAGS_SHA3 = -DSUPPORT_SHA3
+
+CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK)
+LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK)
diff --git a/mk/shake=no.mk b/mk/shake=no.mk
new file mode 120000
index 0000000..54299a4
--- /dev/null
+++ b/mk/shake=no.mk
@@ -0,0 +1 @@
+no \ No newline at end of file
diff --git a/mk/shake=yes.mk b/mk/shake=yes.mk
new file mode 100644
index 0000000..b3f1fbc
--- /dev/null
+++ b/mk/shake=yes.mk
@@ -0,0 +1,4 @@
+CPPFLAGS_SHAKE = -DSUPPORT_SHAKE
+
+CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK)
+LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK)