HMAC-BLAKE2[bs] - remove some spaces per review feedback

This commit is contained in:
Josh Holtrop
2026-01-16 10:38:49 -05:00
parent b432ee93a5
commit b1086a1dbc
3 changed files with 34 additions and 34 deletions

View File

@@ -517,7 +517,7 @@ int wc_Blake2bFinal(Blake2b* b2b, byte* final, word32 requestSz)
}
int wc_Blake2bHmacInit(Blake2b * b2b, const byte * key, size_t key_len)
int wc_Blake2bHmacInit(Blake2b* b2b, const byte* key, size_t key_len)
{
byte x_key[BLAKE2B_BLOCKBYTES];
int i;
@@ -550,7 +550,7 @@ int wc_Blake2bHmacInit(Blake2b * b2b, const byte * key, size_t key_len)
return ret;
}
int wc_Blake2bHmacUpdate(Blake2b * b2b, const byte * in, size_t in_len)
int wc_Blake2bHmacUpdate(Blake2b* b2b, const byte* in, size_t in_len)
{
if (in == NULL)
return BAD_FUNC_ARG;
@@ -558,8 +558,8 @@ int wc_Blake2bHmacUpdate(Blake2b * b2b, const byte * in, size_t in_len)
return wc_Blake2bUpdate(b2b, in, (word32)in_len);
}
int wc_Blake2bHmacFinal(Blake2b * b2b, const byte * key, size_t key_len,
byte * out, size_t out_len)
int wc_Blake2bHmacFinal(Blake2b* b2b, const byte* key, size_t key_len,
byte* out, size_t out_len)
{
byte x_key[BLAKE2B_BLOCKBYTES];
int i;
@@ -602,9 +602,9 @@ int wc_Blake2bHmacFinal(Blake2b * b2b, const byte * key, size_t key_len,
return ret;
}
int wc_Blake2bHmac(const byte * in, size_t in_len,
const byte * key, size_t key_len,
byte * out, size_t out_len)
int wc_Blake2bHmac(const byte* in, size_t in_len,
const byte* key, size_t key_len,
byte* out, size_t out_len)
{
Blake2b state;
int ret;

View File

@@ -511,7 +511,7 @@ int wc_Blake2sFinal(Blake2s* b2s, byte* final, word32 requestSz)
}
int wc_Blake2sHmacInit(Blake2s * b2s, const byte * key, size_t key_len)
int wc_Blake2sHmacInit(Blake2s* b2s, const byte* key, size_t key_len)
{
byte x_key[BLAKE2S_BLOCKBYTES];
int i;
@@ -544,7 +544,7 @@ int wc_Blake2sHmacInit(Blake2s * b2s, const byte * key, size_t key_len)
return ret;
}
int wc_Blake2sHmacUpdate(Blake2s * b2s, const byte * in, size_t in_len)
int wc_Blake2sHmacUpdate(Blake2s* b2s, const byte* in, size_t in_len)
{
if (in == NULL)
return BAD_FUNC_ARG;
@@ -552,8 +552,8 @@ int wc_Blake2sHmacUpdate(Blake2s * b2s, const byte * in, size_t in_len)
return wc_Blake2sUpdate(b2s, in, (word32)in_len);
}
int wc_Blake2sHmacFinal(Blake2s * b2s, const byte * key, size_t key_len,
byte * out, size_t out_len)
int wc_Blake2sHmacFinal(Blake2s* b2s, const byte* key, size_t key_len,
byte* out, size_t out_len)
{
byte x_key[BLAKE2S_BLOCKBYTES];
int i;
@@ -596,9 +596,9 @@ int wc_Blake2sHmacFinal(Blake2s * b2s, const byte * key, size_t key_len,
return ret;
}
int wc_Blake2sHmac(const byte * in, size_t in_len,
const byte * key, size_t key_len,
byte * out, size_t out_len)
int wc_Blake2sHmac(const byte* in, size_t in_len,
const byte* key, size_t key_len,
byte* out, size_t out_len)
{
Blake2s state;
int ret;

View File

@@ -88,16 +88,16 @@ WOLFSSL_API int wc_InitBlake2b_WithKey(Blake2b* b2b, word32 digestSz,
const byte *key, word32 keylen);
WOLFSSL_API int wc_Blake2bUpdate(Blake2b* b2b, const byte* data, word32 sz);
WOLFSSL_API int wc_Blake2bFinal(Blake2b* b2b, byte* final, word32 requestSz);
WOLFSSL_API int wc_Blake2bHmacInit(Blake2b * b2b,
const byte * key, size_t key_len);
WOLFSSL_API int wc_Blake2bHmacUpdate(Blake2b * b2b,
const byte * in, size_t in_len);
WOLFSSL_API int wc_Blake2bHmacFinal(Blake2b * b2b,
const byte * key, size_t key_len,
byte * out, size_t out_len);
WOLFSSL_API int wc_Blake2bHmac(const byte * in, size_t in_len,
const byte * key, size_t key_len,
byte * out, size_t out_len);
WOLFSSL_API int wc_Blake2bHmacInit(Blake2b* b2b,
const byte* key, size_t key_len);
WOLFSSL_API int wc_Blake2bHmacUpdate(Blake2b* b2b,
const byte* in, size_t in_len);
WOLFSSL_API int wc_Blake2bHmacFinal(Blake2b* b2b,
const byte* key, size_t key_len,
byte* out, size_t out_len);
WOLFSSL_API int wc_Blake2bHmac(const byte* in, size_t in_len,
const byte* key, size_t key_len,
byte* out, size_t out_len);
#endif
#ifdef HAVE_BLAKE2S
@@ -106,16 +106,16 @@ WOLFSSL_API int wc_InitBlake2s_WithKey(Blake2s* b2s, word32 digestSz,
const byte *key, word32 keylen);
WOLFSSL_API int wc_Blake2sUpdate(Blake2s* b2s, const byte* data, word32 sz);
WOLFSSL_API int wc_Blake2sFinal(Blake2s* b2s, byte* final, word32 requestSz);
WOLFSSL_API int wc_Blake2sHmacInit(Blake2s * b2s,
const byte * key, size_t key_len);
WOLFSSL_API int wc_Blake2sHmacUpdate(Blake2s * b2s,
const byte * in, size_t in_len);
WOLFSSL_API int wc_Blake2sHmacFinal(Blake2s * b2s,
const byte * key, size_t key_len,
byte * out, size_t out_len);
WOLFSSL_API int wc_Blake2sHmac(const byte * in, size_t in_len,
const byte * key, size_t key_len,
byte * out, size_t out_len);
WOLFSSL_API int wc_Blake2sHmacInit(Blake2s* b2s,
const byte* key, size_t key_len);
WOLFSSL_API int wc_Blake2sHmacUpdate(Blake2s* b2s,
const byte* in, size_t in_len);
WOLFSSL_API int wc_Blake2sHmacFinal(Blake2s* b2s,
const byte* key, size_t key_len,
byte* out, size_t out_len);
WOLFSSL_API int wc_Blake2sHmac(const byte* in, size_t in_len,
const byte* key, size_t key_len,
byte* out, size_t out_len);
#endif