Function esp_idf_hal::sys::mbedtls_rsa_check_pub_priv
source ยท pub unsafe extern "C" fn mbedtls_rsa_check_pub_priv(
pub_: *const mbedtls_rsa_context,
prv: *const mbedtls_rsa_context,
) -> i32
Expand description
\brief This function checks a public-private RSA key pair.
It checks each of the contexts, and makes sure they match.
\param pub The initialized RSA context holding the public key. \param prv The initialized RSA context holding the private key.
\return \c 0 on success. \return An \c MBEDTLS_ERR_RSA_XXX error code on failure.