mbedtls_ecc_group_of_psa() function
Convert an ECC curve identifier from the PSA encoding to Mbed TLS.
Arguments
curve
A PSA elliptic curve identifier (`PSA_ECC_FAMILY_xxx`).
bits
The bit-length of a private key on \p curve.
bits_is_sloppy
If true, \p bits may be the bit-length rounded up to the nearest multiple of 8. This allows the caller to infer the exact curve from the length of a key which is supplied as a byte string.
Return value
The corresponding Mbed TLS elliptic curve identifier (`MBEDTLS_ECP_DP_xxx`). #MBEDTLS_ECP_DP_NONE if \c curve is not recognized. #MBEDTLS_ECP_DP_NONE if \p bits is not correct for \p curve.
Notes
This function is provided solely for the convenience of Mbed TLS and may be removed at any time without notice.