mbedtls_ecdsa_from_keypair() function
This function sets up an ECDSA context from an EC key pair. \see ecp.h
Arguments
ctx
The ECDSA context to setup. This must be initialized.
key
The EC key to use. This must be initialized and hold a private-public key pair or a public key. In the former case, the ECDSA context may be used for signature creation and verification after this call. In the latter case, it may be used for signature verification.
Return value
\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX code on failure.