From: Loup Vaillant Date: Thu, 5 Jan 2017 16:25:50 +0000 (+0100) Subject: fixed blaked2b interface X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=16f8a6b700d575eae4ad78c97b3dcf2db99b9e37;p=Monocypher.git fixed blaked2b interface --- 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.