psa_util: remove support for secp224k1 in EC conversion functions
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/library/psa_util.c b/library/psa_util.c
index 971f965..d833299 100644
--- a/library/psa_util.c
+++ b/library/psa_util.c
@@ -232,11 +232,7 @@
return PSA_ECC_FAMILY_SECP_K1;
#endif
#if defined(MBEDTLS_ECP_HAVE_SECP224K1)
- /* secp224k1 has 224-bit coordinates but 225-bit private keys.
- * 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;
+ /* secp224k1 is not and will not be supported in PSA (#3541). */
#endif
#if defined(MBEDTLS_ECP_HAVE_SECP256K1)
case MBEDTLS_ECP_DP_SECP256K1:
@@ -320,10 +316,7 @@
return MBEDTLS_ECP_DP_SECP192K1;
#endif
#if defined(PSA_WANT_ECC_SECP_K1_224)
- /* secp224k1 has 224-bit coordinates but 225-bit private keys.
- * The nominal key size in PSA is the private key size, hence 225. */
- case 225:
- return MBEDTLS_ECP_DP_SECP224K1;
+ /* secp224k1 is not and will not be supported in PSA (#3541). */
#endif
#if defined(PSA_WANT_ECC_SECP_K1_256)
case 256: