blake2.h/blake2b.c: fix typos.

This commit is contained in:
Daniel Pouzzner
2020-09-17 00:41:09 -05:00
parent 0c9ba76a93
commit a571378b5f
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -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