Skip to main content

validate_identity_key_pair

Function validate_identity_key_pair 

Source
pub fn validate_identity_key_pair(
    key_alg: &str,
    public_key: &[u8],
    private_key: &[u8],
) -> Result<()>
Expand description

Validate decrypted identity key material against the public key stored in the key file.

ยงErrors

If the key algorithm is unsupported or the public/private halves do not match.