Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-02-17 11:50:02 +01:00
parent d917081b8b
commit 8e3602569b
No known key found for this signature in database
GPG Key ID: 106F5A41ECC305BD
2 changed files with 3 additions and 4 deletions

View File

@ -230,8 +230,7 @@ psa_status_t mbedtls_psa_hkdf_expand( psa_algorithm_t alg,
goto cleanup;
}
/* The constant concatenated to the end of each T(n) is a single octet.
* */
/* The constant concatenated to the end of each T(n) is a single octet. */
status = psa_mac_update( &operation, &c, 1 );
if( status != PSA_SUCCESS )
{

View File

@ -3853,10 +3853,10 @@ void psa_hkdf_expand_ret( int alg, int prk_len, int okm_len, int ret )
info_len = 0;
if (prk_len > 0)
if( prk_len > 0 )
ASSERT_ALLOC( prk, prk_len );
if (okm_len > 0)
if( okm_len > 0 )
ASSERT_ALLOC( okm, okm_len );
output_ret = mbedtls_psa_hkdf_expand( alg, prk, prk_len,