Function esp_idf_hal::sys::mbedtls_ecdsa_from_keypair
source ยท pub unsafe extern "C" fn mbedtls_ecdsa_from_keypair(
ctx: *mut mbedtls_ecp_keypair,
key: *const mbedtls_ecp_keypair,
) -> i32
Expand description
\brief This function sets up an ECDSA context from an EC key pair.
\see ecp.h
\param ctx The ECDSA context to setup. This must be initialized. \param 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 \c 0 on success. \return An \c MBEDTLS_ERR_ECP_XXX code on failure.