From 69fa341d9ba5e5d4a2ca23b69a2faba2a2e2f641 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 15 Jun 2015 14:47:24 -0400 Subject: Add SHA-2 support --- src/hashFFI.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/hashFFI.cc') diff --git a/src/hashFFI.cc b/src/hashFFI.cc index dcc7375..2e7596e 100644 --- a/src/hashFFI.cc +++ b/src/hashFFI.cc @@ -87,3 +87,23 @@ uw_Basis_string uw_HashFFI_sha1(uw_context* const context, const uw_Basis_blob input) { return Hash(context, input, SHA1); } + +uw_Basis_string uw_HashFFI_sha224(uw_context* const context, + const uw_Basis_blob input) { + return Hash(context, input, SHA224); +} + +uw_Basis_string uw_HashFFI_sha256(uw_context* const context, + const uw_Basis_blob input) { + return Hash(context, input, SHA256); +} + +uw_Basis_string uw_HashFFI_sha384(uw_context* const context, + const uw_Basis_blob input) { + return Hash(context, input, SHA384); +} + +uw_Basis_string uw_HashFFI_sha512(uw_context* const context, + const uw_Basis_blob input) { + return Hash(context, input, SHA512); +} -- cgit v1.2.3