mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:35:43 +01:00
Don't jump past a variable declaration
This is valid C99 (since the variable in question is not a VLA and is not used) but not accepted by IAR 8.20.
This commit is contained in:
parent
593773d9f2
commit
46d7faf195
@ -5104,12 +5104,13 @@ static psa_status_t psa_key_derivation_input_internal(
|
||||
const uint8_t *data,
|
||||
size_t data_length )
|
||||
{
|
||||
psa_status_t status = psa_key_derivation_check_input_type( step, key_type );
|
||||
psa_status_t status;
|
||||
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
|
||||
|
||||
status = psa_key_derivation_check_input_type( step, key_type );
|
||||
if( status != PSA_SUCCESS )
|
||||
goto exit;
|
||||
|
||||
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
|
||||
|
||||
#if defined(MBEDTLS_MD_C)
|
||||
if( PSA_ALG_IS_HKDF( kdf_alg ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user