pub fn verify(public_key: RsaPublicKey, message: Vec<u8>, signature: Vec<u8>) -> bool {
    let padding = PaddingScheme::new_pkcs1v15_sign(Some(SHA3_512));
    let result = hash(&message);
    public_key.verify(padding, &result, &signature).is_ok()
}
/// Verify that a signature for a message is valid.
Verify that a signature for a message is valid.
Verify that a signature for a message is valid .
pub fn verify(public_key: RsaPublicKey, message: Vec<u8>, signature: Vec<u8>) -> bool {
    let padding = PaddingScheme::new_pkcs1v15_sign(Some(SHA3_512));
    let result = hash(&message);
    public_key.verify(padding, &result, &signature).is_ok()
}
pub fn verify ( public_key : RsaPublicKey , message : Vec < u8 > , signature : Vec < u8 > ) -> bool { let padding = PaddingScheme :: new_pkcs1v15_sign ( Some ( SHA3_512 ) ) ; let result = hash ( & message ) ; public_key . verify ( padding , & result , & signature ) . is_ok ( ) }
Verify that a signature for a message is valid.
Verify that a signature for a message is valid .
public_key
RsaPublicKey
message
Vec<u8>
signature
Vec<u8>
public_key
RsaPublicKey
message
Vec<u8>
signature
Vec<u8>