mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-25 09:02:48 +00:00
psa_util: remove support for secp224k1 in EC conversion functions
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
65df79303f
commit
7863627bd6
@ -232,11 +232,7 @@ psa_ecc_family_t mbedtls_ecc_group_to_psa(mbedtls_ecp_group_id grpid,
|
|||||||
return PSA_ECC_FAMILY_SECP_K1;
|
return PSA_ECC_FAMILY_SECP_K1;
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_HAVE_SECP224K1)
|
#if defined(MBEDTLS_ECP_HAVE_SECP224K1)
|
||||||
/* secp224k1 has 224-bit coordinates but 225-bit private keys.
|
/* secp224k1 is not and will not be supported in PSA (#3541). */
|
||||||
* The nominal key size in PSA is the private key size, hence 225. */
|
|
||||||
case MBEDTLS_ECP_DP_SECP224K1:
|
|
||||||
*bits = 225;
|
|
||||||
return PSA_ECC_FAMILY_SECP_K1;
|
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_HAVE_SECP256K1)
|
#if defined(MBEDTLS_ECP_HAVE_SECP256K1)
|
||||||
case MBEDTLS_ECP_DP_SECP256K1:
|
case MBEDTLS_ECP_DP_SECP256K1:
|
||||||
@ -320,10 +316,7 @@ mbedtls_ecp_group_id mbedtls_ecc_group_from_psa(psa_ecc_family_t curve,
|
|||||||
return MBEDTLS_ECP_DP_SECP192K1;
|
return MBEDTLS_ECP_DP_SECP192K1;
|
||||||
#endif
|
#endif
|
||||||
#if defined(PSA_WANT_ECC_SECP_K1_224)
|
#if defined(PSA_WANT_ECC_SECP_K1_224)
|
||||||
/* secp224k1 has 224-bit coordinates but 225-bit private keys.
|
/* secp224k1 is not and will not be supported in PSA (#3541). */
|
||||||
* The nominal key size in PSA is the private key size, hence 225. */
|
|
||||||
case 225:
|
|
||||||
return MBEDTLS_ECP_DP_SECP224K1;
|
|
||||||
#endif
|
#endif
|
||||||
#if defined(PSA_WANT_ECC_SECP_K1_256)
|
#if defined(PSA_WANT_ECC_SECP_K1_256)
|
||||||
case 256:
|
case 256:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user