]> git.codecow.com Git - Monocypher.git/commitdiff
fixed blaked2b interface
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 5 Jan 2017 16:25:50 +0000 (17:25 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 5 Jan 2017 16:25:50 +0000 (17:25 +0100)
blake2b.c
blake2b.h

index 3c33f9e8d7d7c23a7efe3890997d122d5cfde291..87f36632f85917e75af9c88b5909407aebb6ae29 100644 (file)
--- 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)
 {
 
index 3e9e445b785f2788a20ba3d83f446c4482ff7d7d..687cf091af0dc6e7dfda32d26645ec240902beb1 100644 (file)
--- 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.