Convert an ECC curve identifier from the Mbed TLS encoding to PSA.
- Note
- This function is provided solely for the convenience of Mbed TLS and may be removed at any time without notice.
- Parameters
-
| grpid | An Mbed TLS elliptic curve identifier (MBEDTLS_ECP_DP_xxx ). |
[out] | bits | On success, the bit size of the curve. |
- Returns
- The corresponding PSA elliptic curve identifier (
PSA_ECC_FAMILY_xxx
).
-
0
on failure (grpid
is not recognized).
Definition at line 593 of file crypto_extra.h.
References MBEDTLS_ECP_DP_BP256R1, MBEDTLS_ECP_DP_BP384R1, MBEDTLS_ECP_DP_BP512R1, MBEDTLS_ECP_DP_CURVE25519, MBEDTLS_ECP_DP_CURVE448, MBEDTLS_ECP_DP_SECP192K1, MBEDTLS_ECP_DP_SECP192R1, MBEDTLS_ECP_DP_SECP224K1, MBEDTLS_ECP_DP_SECP224R1, MBEDTLS_ECP_DP_SECP256K1, MBEDTLS_ECP_DP_SECP256R1, MBEDTLS_ECP_DP_SECP384R1, MBEDTLS_ECP_DP_SECP521R1, PSA_ECC_FAMILY_BRAINPOOL_P_R1, PSA_ECC_FAMILY_MONTGOMERY, PSA_ECC_FAMILY_SECP_K1, and PSA_ECC_FAMILY_SECP_R1.
Referenced by mbedtls_psa_parse_tls_ecc_group().