From 16f8a6b700d575eae4ad78c97b3dcf2db99b9e37 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Thu, 5 Jan 2017 17:25:50 +0100 Subject: [PATCH] fixed blaked2b interface --- blake2b.c | 2 +- blake2b.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blake2b.c b/blake2b.c index 3c33f9e..87f3663 100644 --- a/blake2b.c +++ b/blake2b.c @@ -89,7 +89,7 @@ blake2b_compress(crypto_blake2b_ctx *ctx, int last) void crypto_blake2b_general_init(crypto_blake2b_ctx *ctx, size_t outlen, - const void *key, + const uint8_t *key, size_t keylen) { diff --git a/blake2b.h b/blake2b.h index 3e9e445..687cf09 100644 --- a/blake2b.h +++ b/blake2b.h @@ -19,7 +19,7 @@ typedef struct { // key : some secret key. May be NULL if keylen is 0. // Any deviation from these invariants results in UNDEFINED BEHAVIOR void -crypto_general_blake2b_init(crypto_blake2b_ctx *ctx, size_t outlen, +crypto_blake2b_general_init(crypto_blake2b_ctx *ctx, size_t outlen, const uint8_t *key, size_t keylen); // Convenience function: 64 bytes hash, no secret key. -- 2.47.3