PK tests: use PSA to generate keypairs when USE_PSA
is enabled
#7389
Labels
component-crypto
Crypto primitives and low-level interfaces
enhancement
size-s
Estimated task size: small (~2d)
Context: see #6839; this is a step towards ECPa.PK.
In
test_suite_pk.function
, we use ECP functions to generate ECC key pairs in two places:mbedtls_ecp_gen_keypair()
inpk_genkey()
;mbedtls_ecp_gen_key()
inpk_psa_sign()
.This is a dependency on ECP arithmetic, which we're trying to avoid.
Instead, when
MBEDTLS_USE_PSA_CRYPTO
is enabled, we can use an approach based onpsa_generate_key()
. This task is to implement it.Notes:
pk_psa_sign()
already depends onMBEDTLS_USE_PSA_CRYPTO
.Prototype: #7357
The text was updated successfully, but these errors were encountered: