From eb9f9c6d7a2677b3348dbb7e2762a7f9cdce182d Mon Sep 17 00:00:00 2001 From: Franziskus Kiefer Date: Fri, 1 Dec 2023 14:04:12 +0100 Subject: [PATCH] update cmake example after hacl update (#434) --- examples/cmake/blake-example.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cmake/blake-example.cc b/examples/cmake/blake-example.cc index 3c1d17ab..3881641b 100644 --- a/examples/cmake/blake-example.cc +++ b/examples/cmake/blake-example.cc @@ -5,7 +5,7 @@ * - http://www.apache.org/licenses/LICENSE-2.0 * - http://opensource.org/licenses/MIT */ -#include "Hacl_Hash_Blake2.h" +#include "Hacl_Hash_Blake2b.h" using namespace std; @@ -35,8 +35,8 @@ int main(int argc, char const *argv[]) uint32_t key_len = 0; uint8_t *key = 0; - Hacl_Blake2b_32_blake2b( - output_len, output, message_len, (uint8_t *)message, key_len, key); + Hacl_Hash_Blake2b_hash_with_key( + output, output_len, (uint8_t *)message,message_len, key, key_len); print_hex_ln(output_len, output);