I have a raw binary x and y points on a prime256v1 curve. I want to convert this to some mbedtls structure, and then to a mbedtls_pk_context that I can write to PEM.
Is there an equivalent to mbedtls_rsa_import_raw? Or sample code?
The higher level task is that I need a complete set of converters between raw binary, mbedtls structures, DER, and PEM for both ECC and RSA.
A pointer to sample code, a tutorial, book, or wiki would be welcome.