[][src]Trait rsa::hash::Hash

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

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

Required methods

fn size(&self) -> usize

Returns the length in bytes of a digest.

fn asn1_prefix(&self) -> Vec<u8>

Returns the ASN1 DER prefix for the the hash function.

Loading content...

Implementors

impl Hash for Hashes[src]

Loading content...