Use proper conditional for software DES
When converting definitions to use the new PSA defines, one erroneously was conditionalized on the WANT macro instead of on the BUILTIN macro. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
288a96e169
commit
7807bf7404
1 changed files with 2 additions and 2 deletions
|
@ -5063,7 +5063,7 @@ exit:
|
|||
return( status );
|
||||
}
|
||||
|
||||
#if defined(PSA_WANT_KEY_TYPE_DES)
|
||||
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_DES)
|
||||
static void psa_des_set_key_parity( uint8_t *data, size_t data_size )
|
||||
{
|
||||
if( data_size >= 8 )
|
||||
|
@ -5073,7 +5073,7 @@ static void psa_des_set_key_parity( uint8_t *data, size_t data_size )
|
|||
if( data_size >= 24 )
|
||||
mbedtls_des_key_set_parity( data + 16 );
|
||||
}
|
||||
#endif /* PSA_WANT_KEY_TYPE_DES */
|
||||
#endif /* MBEDTLS_PSA_BUILTIN_KEY_TYPE_DES */
|
||||
|
||||
static psa_status_t psa_generate_derived_key_internal(
|
||||
psa_key_slot_t *slot,
|
||||
|
|
Loading…
Reference in a new issue