From a571378b5fda68de203f9d36a5bb38bf51d90d25 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 17 Sep 2020 00:41:09 -0500 Subject: [PATCH] blake2.h/blake2b.c: fix typos. --- wolfcrypt/src/blake2b.c | 4 ++-- wolfssl/wolfcrypt/blake2.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/blake2b.c b/wolfcrypt/src/blake2b.c index 3ccc28730..f6d92f472 100644 --- a/wolfcrypt/src/blake2b.c +++ b/wolfcrypt/src/blake2b.c @@ -441,9 +441,9 @@ int wc_InitBlake2b_WithKey(Blake2b* b2b, word32 digestSz, const byte *key, word3 return -1; if (key) - return blake2s_init_key(b2b->S, (byte)digestSz, key, (byte)keylen); + return blake2b_init_key(b2b->S, (byte)digestSz, key, (byte)keylen); else - return blake2s_init(b2b->S, (byte)digestSz); + return blake2b_init(b2b->S, (byte)digestSz); } /* Blake2b Update */ diff --git a/wolfssl/wolfcrypt/blake2.h b/wolfssl/wolfcrypt/blake2.h index 37e4e2463..620482dac 100644 --- a/wolfssl/wolfcrypt/blake2.h +++ b/wolfssl/wolfcrypt/blake2.h @@ -76,7 +76,7 @@ typedef struct Blake2s { #ifdef HAVE_BLAKE2B WOLFSSL_API int wc_InitBlake2b(Blake2b*, word32); -WOLFSSL_API int wc_InitBlake2b_WithKey(Blake2s*, word32, const byte *, word32); +WOLFSSL_API int wc_InitBlake2b_WithKey(Blake2b*, word32, const byte *, word32); WOLFSSL_API int wc_Blake2bUpdate(Blake2b*, const byte*, word32); WOLFSSL_API int wc_Blake2bFinal(Blake2b*, byte*, word32); #endif