[][src]Enum over_there_auth::Digest

pub enum Digest {
    Digest256Bits(Digest256Bits),
    Digest512Bits(Digest512Bits),
}

Variants

Digest256Bits(Digest256Bits)
Digest512Bits(Digest512Bits)

Methods

impl Digest[src]

pub fn digest(&self) -> &[u8][src]

Retrieves reference to underlying digest

pub fn verify(&self, key: &[u8], content: &[u8]) -> bool[src]

Verifies the given content with the specified key given the digest signature (self)

Trait Implementations

impl Clone for Digest[src]

impl Debug for Digest[src]

impl Default for Digest[src]

fn default() -> Self[src]

Creates an empty, 256-bit signature

impl<'de> Deserialize<'de> for Digest[src]

impl From<[u8; 32]> for Digest[src]

impl From<[u8; 64]> for Digest[src]

impl Serialize for Digest[src]

impl<'_> TryFrom<&'_ [u8]> for Digest[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Digest

impl Send for Digest

impl Sync for Digest

impl Unpin for Digest

impl UnwindSafe for Digest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.