Finish cleaning up override that's no longer needed

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-02-26 15:45:33 +01:00
parent 97c0b2f393
commit e22f6a9610

View file

@ -7421,12 +7421,7 @@ psa_status_t psa_generate_key_internal(
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_GENERATE) #if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_GENERATE)
if (type == PSA_KEY_TYPE_RSA_KEY_PAIR) { if (type == PSA_KEY_TYPE_RSA_KEY_PAIR) {
/* Hack: if the method specifies a non-default e, pass it return mbedtls_psa_rsa_generate_key(attributes,
* via the domain parameters. TODO: refactor this code so
* that mbedtls_psa_rsa_generate_key() gets e via a new
* parameter instead. */
psa_key_attributes_t override_attributes = *attributes;
return mbedtls_psa_rsa_generate_key(&override_attributes,
params, params_data_length, params, params_data_length,
key_buffer, key_buffer,
key_buffer_size, key_buffer_size,