Skip to content

Commit

Permalink
update cmake example after hacl update (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer authored Dec 1, 2023
1 parent 484a64f commit eb9f9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/cmake/blake-example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit eb9f9c6

Please sign in to comment.