Function esp_idf_svc::hal::sys::mbedtls_pk_check_pair
source ยท pub unsafe extern "C" fn mbedtls_pk_check_pair(
pub_: *const mbedtls_pk_context,
prv: *const mbedtls_pk_context,
f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>,
p_rng: *mut c_void,
) -> i32
Expand description
\brief Check if a public-private pair of keys matches.
\param pub Context holding a public key. \param prv Context holding a private (and public) key. \param f_rng RNG function, must not be \c NULL. \param p_rng RNG parameter
\return \c 0 on success (keys were checked and match each other). \return #MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE if the keys could not be checked - in that case they may or may not match. \return #MBEDTLS_ERR_PK_BAD_INPUT_DATA if a context is invalid. \return Another non-zero value if the keys do not match.