Trait mitrid_core::crypto::authenticate::Authenticated[][src]

pub trait Authenticated<P, T> where
    P: Datable,
    T: Datable + ConstantSize,
    Self: Datable
{ fn authenticate_cb(
        &self,
        params: &P,
        cb: &Fn(&Self, &P) -> Result<T>
    ) -> Result<T> { ... }
fn verify_tag_cb(
        &self,
        params: &P,
        tag: &T,
        cb: &Fn(&Self, &P, &T) -> Result<bool>
    ) -> Result<bool> { ... }
fn check_tag_cb(
        &self,
        params: &P,
        tag: &T,
        cb: &Fn(&Self, &P, &T) -> Result<()>
    ) -> Result<()> { ... } }

Trait used by types that can be cryptographically authenticated.

Provided Methods

Authenticates cryptographhically the implementor using Datable params and a callback. Returns an authentication tag.

Verifies an authentication tag against the implementor tag.

Checks an authentication tag against the implementor tag.

Implementors