[][src]Enum emerald_rs::keystore::Prf

pub enum Prf {
    HmacSha256,
    HmacSha512,
}

Pseudo-Random Functions (PRFs)

Variants

HmacSha256

HMAC-SHA-256 (specified in (RFC 4868)[https://tools.ietf.org/html/rfc4868])

HmacSha512

HMAC-SHA-512 (specified in (RFC 4868)[https://tools.ietf.org/html/rfc4868])

Methods

impl Prf[src]

pub fn hmac(&self, passphrase: &str) -> Hmac<Sha256>[src]

Calculate hashed message authentication code using SHA-256 digest

pub fn hmac512(&self, passphrase: &str) -> Hmac<Sha512>[src]

Calculate hashed message authentication code using SHA-512 digest

Trait Implementations

impl Eq for Prf[src]

impl Copy for Prf[src]

impl Default for Prf[src]

impl PartialEq<Prf> for Prf[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Prf[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Prf[src]

impl Debug for Prf[src]

impl FromStr for Prf[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Prf[src]

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

Auto Trait Implementations

impl Send for Prf

impl Sync for Prf

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

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

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<'a, T> TryFrom for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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