[][src]Trait http_sig::HttpDigest

pub trait HttpDigest: Debug + Send + Sync + 'static {
    fn name(&self) -> &str;
fn http_digest(&self, bytes_to_digest: &[u8]) -> String; }

Implementations of this trait correspond to digest algorithms listed here: https://www.iana.org/assignments/http-dig-alg/http-dig-alg.xhtml

Required methods

fn name(&self) -> &str

Must return the name exactly as specified in the above list of HTTP digest algorithms.

fn http_digest(&self, bytes_to_digest: &[u8]) -> String

Returns the encoded digest, ready for inclusion in the HTTP Digest header. The encoding to use is specified in the above list of HTTP digest algorithms.

Loading content...

Implementations on Foreign Types

impl HttpDigest for Sha256[src]

impl HttpDigest for Sha512[src]

Loading content...

Implementors

Loading content...