diff --git a/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha256.c b/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha256.c index 736346b2..c8238640 100644 --- a/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha256.c +++ b/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha256.c @@ -48,9 +48,9 @@ crypto_kdf_hkdf_sha256_expand(unsigned char *out, size_t out_len, i += crypto_auth_hmacsha256_BYTES) { crypto_auth_hmacsha256_init(&st, prk, crypto_kdf_hkdf_sha256_KEYBYTES); if (i != (size_t) 0U) { - crypto_auth_hmacsha256_update( - &st, &out[i - crypto_auth_hmacsha256_BYTES], - crypto_auth_hmacsha256_BYTES); + crypto_auth_hmacsha256_update(&st, + &out[i - crypto_auth_hmacsha256_BYTES], + crypto_auth_hmacsha256_BYTES); } crypto_auth_hmacsha256_update(&st, (const unsigned char *) ctx, ctx_len); @@ -61,9 +61,9 @@ crypto_kdf_hkdf_sha256_expand(unsigned char *out, size_t out_len, if ((left = out_len & (crypto_auth_hmacsha256_BYTES - 1U)) != (size_t) 0U) { crypto_auth_hmacsha256_init(&st, prk, crypto_kdf_hkdf_sha256_KEYBYTES); if (i != (size_t) 0U) { - crypto_auth_hmacsha256_update( - &st, &out[i - crypto_auth_hmacsha256_BYTES], - crypto_auth_hmacsha256_BYTES); + crypto_auth_hmacsha256_update(&st, + &out[i - crypto_auth_hmacsha256_BYTES], + crypto_auth_hmacsha256_BYTES); } crypto_auth_hmacsha256_update(&st, (const unsigned char *) ctx, ctx_len); diff --git a/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha512.c b/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha512.c index 476d56be..ec281225 100644 --- a/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha512.c +++ b/src/libsodium/crypto_kdf/hkdf/kdf_hkdf_sha512.c @@ -48,9 +48,9 @@ crypto_kdf_hkdf_sha512_expand(unsigned char *out, size_t out_len, i += crypto_auth_hmacsha512_BYTES) { crypto_auth_hmacsha512_init(&st, prk, crypto_kdf_hkdf_sha512_KEYBYTES); if (i != (size_t) 0U) { - crypto_auth_hmacsha512_update( - &st, &out[i - crypto_auth_hmacsha512_BYTES], - crypto_auth_hmacsha512_BYTES); + crypto_auth_hmacsha512_update(&st, + &out[i - crypto_auth_hmacsha512_BYTES], + crypto_auth_hmacsha512_BYTES); } crypto_auth_hmacsha512_update(&st, (const unsigned char *) ctx, ctx_len); @@ -61,9 +61,9 @@ crypto_kdf_hkdf_sha512_expand(unsigned char *out, size_t out_len, if ((left = out_len & (crypto_auth_hmacsha512_BYTES - 1U)) != (size_t) 0U) { crypto_auth_hmacsha512_init(&st, prk, crypto_kdf_hkdf_sha512_KEYBYTES); if (i != (size_t) 0U) { - crypto_auth_hmacsha512_update( - &st, &out[i - crypto_auth_hmacsha512_BYTES], - crypto_auth_hmacsha512_BYTES); + crypto_auth_hmacsha512_update(&st, + &out[i - crypto_auth_hmacsha512_BYTES], + crypto_auth_hmacsha512_BYTES); } crypto_auth_hmacsha512_update(&st, (const unsigned char *) ctx, ctx_len);