Trait mitrid_core::crypto::hash::Hashable[][src]

pub trait Hashable<P, D> where
    P: Datable,
    D: Datable + ConstantSize,
    Self: Datable
{ fn digest_cb(
        &self,
        params: &P,
        cb: &Fn(&Self, &P) -> Result<D>
    ) -> Result<D> { ... }
fn verify_digest_cb(
        &self,
        params: &P,
        digest: &D,
        cb: &Fn(&Self, &P, &D) -> Result<bool>
    ) -> Result<bool> { ... }
fn check_digest_cb(
        &self,
        params: &P,
        digest: &D,
        cb: &Fn(&Self, &P, &D) -> Result<()>
    ) -> Result<()> { ... } }

Trait implemented by types that can be cryptographically hashed.

Provided Methods

Hashes cryptographically the implementor using Datable params and a callback. Returns a cryptographic digest.

Verifies the cryptographic digest against the implementor digest.

Verifies the cryptographic digest against the implementor digest.

Implementors