From e22f6a9610bf954b47593e248a83a4b8fe24ee93 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 26 Feb 2024 15:45:33 +0100 Subject: [PATCH] Finish cleaning up override that's no longer needed Signed-off-by: Gilles Peskine --- library/psa_crypto.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 3124a62569..ca01e76491 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -7421,12 +7421,7 @@ psa_status_t psa_generate_key_internal( #if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_GENERATE) if (type == PSA_KEY_TYPE_RSA_KEY_PAIR) { - /* Hack: if the method specifies a non-default e, pass it - * 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, + return mbedtls_psa_rsa_generate_key(attributes, params, params_data_length, key_buffer, key_buffer_size,