mbedtls_ecc_group_to_psa() function
Convert an ECC curve identifier from the Mbed TLS encoding to PSA.
Arguments
grpid
An Mbed TLS elliptic curve identifier (`MBEDTLS_ECP_DP_xxx`).
bits
On success the bit size of the curve; 0 on failure.
Return value
If the curve is supported in the PSA API, this function returns the proper PSA curve identifier (`PSA_ECC_FAMILY_xxx`). This holds even if the curve is not supported by the ECP module. \c 0 if the curve is not supported in the PSA API.