forked from wolfSSL/wolfssl
blake2.h/blake2b.c: fix typos.
This commit is contained in:
@ -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 */
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user