mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Add missing ifdef when calculating operation capacity
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
3c4c514302
commit
7763829c5c
|
|
@ -5174,7 +5174,8 @@ static psa_status_t psa_key_derivation_setup_kdf(
|
||||||
{
|
{
|
||||||
return( PSA_ERROR_NOT_SUPPORTED );
|
return( PSA_ERROR_NOT_SUPPORTED );
|
||||||
}
|
}
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
|
||||||
|
defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)
|
||||||
if( PSA_ALG_IS_HKDF_EXTRACT( kdf_alg ) ||
|
if( PSA_ALG_IS_HKDF_EXTRACT( kdf_alg ) ||
|
||||||
( kdf_alg == PSA_ALG_TLS12_ECJPAKE_TO_PMS ) )
|
( kdf_alg == PSA_ALG_TLS12_ECJPAKE_TO_PMS ) )
|
||||||
operation->capacity = hash_size;
|
operation->capacity = hash_size;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue