aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-01 16:34:46 +0200
committerMattias Andrée <maandree@kth.se>2024-09-01 16:34:46 +0200
commitd737d34b436f673173695c4c772f0ddef9fe7837 (patch)
treef6bf400809124d411eaff38fe2c9d24842c8d23a /common.h
parentm fix (diff)
downloadlibhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.gz
libhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.bz2
libhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.xz
Add support for BLAKE2 (but not tree-hashing)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.h b/common.h
index 01d3231..18d817c 100644
--- a/common.h
+++ b/common.h
@@ -24,7 +24,10 @@
#if defined(SUPPORT_BLAKES) || defined(SUPPORT_BLAKEB)
# define SUPPORT_BLAKE
#endif
-#if defined(SUPPORT_BLAKE)
+#if defined(SUPPORT_BLAKE2S) || defined(SUPPORT_BLAKE2B)
+# define SUPPORT_BLAKE2
+#endif
+#if defined(SUPPORT_BLAKE) || defined(SUPPORT_BLAKE2)
# define LIBHASHSUM_INCLUDE_LIBBLAKE_STATE
#endif