mbedtls_pk_check_pair() function
Check if a public-private pair of keys matches.
Arguments
pub
Context holding a public key.
prv
Context holding a private (and public) key.
Return value
\c 0 on success (keys were checked and match each other). #MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE if the keys could not be checked - in that case they may or may not match. #MBEDTLS_ERR_PK_BAD_INPUT_DATA if a context is invalid. Another non-zero value if the keys do not match.