Trait rsa::hash::Hash

source ·
pub trait Hash {
    fn size(&self) -> usize;
    fn asn1_prefix(&self) -> Vec<u8>;
}
Expand description

A generic trait that exposes the information that is needed for a hash function to be used in sign and verify..

Required Methods§

Returns the length in bytes of a digest.

Returns the ASN1 DER prefix for the the hash function.

Implementors§