[−][src]Function yaca::simple_verify_signature
pub fn simple_verify_signature(
algo: &DigestAlgorithm,
pub_key: &Key,
message: &[u8],
signature: &[u8]
) -> Result<bool>
Verifies a signature using asymmetric public key
algo
is a digest algorithm used to calculate the signature.pub_key
is a matching public key to the one used to calculate the signature, algorithm is deduced based on key type, supported key types:message
is the data used to calculate the signature from.signature
is a message signature to be verified.- The functions returns
true
in case of a successful verification,false
otherwise.