Add comment

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-02-15 16:02:59 +01:00
parent 0e7c6f4961
commit d860e0f18b
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD

View file

@ -167,6 +167,8 @@ psa_status_t mbedtls_psa_hkdf_extract( psa_algorithm_t alg,
return( PSA_ERROR_INVALID_ARGUMENT ); return( PSA_ERROR_INVALID_ARGUMENT );
} }
/* salt_len <= sizeof( salt ) because
PSA_HASH_LENGTH( alg ) <= PSA_MAC_MAX_SIZE. */
salt = null_salt; salt = null_salt;
salt_len = hash_len; salt_len = hash_len;
} }