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§
sourcefn asn1_prefix(&self) -> Vec<u8>
fn asn1_prefix(&self) -> Vec<u8>
Returns the ASN1 DER prefix for the the hash function.