mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:55:51 +01:00
Add missing #ifdef guards around psa_hmac_start
This commit is contained in:
parent
16c0f4f787
commit
248051acb6
@ -1235,6 +1235,7 @@ static int psa_cmac_start( psa_mac_operation_t *operation,
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_CMAC_C */
|
#endif /* MBEDTLS_CMAC_C */
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_MD_C)
|
||||||
static int psa_hmac_start( psa_mac_operation_t *operation,
|
static int psa_hmac_start( psa_mac_operation_t *operation,
|
||||||
psa_key_type_t key_type,
|
psa_key_type_t key_type,
|
||||||
key_slot_t *slot,
|
key_slot_t *slot,
|
||||||
@ -1301,6 +1302,7 @@ cleanup:
|
|||||||
|
|
||||||
return( status );
|
return( status );
|
||||||
}
|
}
|
||||||
|
#endif /* MBEDTLS_MD_C */
|
||||||
|
|
||||||
psa_status_t psa_mac_start( psa_mac_operation_t *operation,
|
psa_status_t psa_mac_start( psa_mac_operation_t *operation,
|
||||||
psa_key_slot_t key,
|
psa_key_slot_t key,
|
||||||
@ -1357,13 +1359,11 @@ psa_status_t psa_mac_start( psa_mac_operation_t *operation,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If we reach this point, then the algorithm-specific part of the
|
/* If we reach this point, then the algorithm-specific part of the
|
||||||
|
|
||||||
* context may contain data that needs to be wiped on error. */
|
* context may contain data that needs to be wiped on error. */
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
{
|
{
|
||||||
psa_mac_abort( operation );
|
psa_mac_abort( operation );
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
operation->key_set = 1;
|
operation->key_set = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user