mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
gen_key: limit EC key generation to when USE_PSA is disabled
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
b6891b13f6
commit
37194b97f8
@ -321,7 +321,7 @@ usage:
|
||||
}
|
||||
} else
|
||||
#endif /* MBEDTLS_RSA_C */
|
||||
#if defined(MBEDTLS_ECP_C)
|
||||
#if defined(MBEDTLS_ECP_C) && !defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
if (opt.type == MBEDTLS_PK_ECKEY) {
|
||||
ret = mbedtls_ecp_gen_key((mbedtls_ecp_group_id) opt.ec_curve,
|
||||
mbedtls_pk_ec(key),
|
||||
|
Loading…
x
Reference in New Issue
Block a user