aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/c_src/digest.c')
-rw-r--r--lib/crypto/c_src/digest.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/crypto/c_src/digest.c b/lib/crypto/c_src/digest.c
index 00ba65bf54..fec286c000 100644
--- a/lib/crypto/c_src/digest.c
+++ b/lib/crypto/c_src/digest.c
@@ -82,6 +82,20 @@ static struct digest_type_t digest_types[] =
{NULL}
#endif
},
+ {{"blake2b"},
+#ifdef HAVE_BLAKE2
+ {&EVP_blake2b512}
+#else
+ {NULL}
+#endif
+ },
+ {{"blake2s"},
+#ifdef HAVE_BLAKE2
+ {&EVP_blake2s256}
+#else
+ {NULL}
+#endif
+ },
{{NULL}, {NULL}}
};