[][src]Enum webchain_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 Clone for Prf[src]

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

Performs copy-assignment from source. Read more

impl Eq for Prf[src]

impl Copy for Prf[src]

impl PartialEq<Prf> for Prf[src]

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

This method tests for !=.

impl Default for Prf[src]

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.

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> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

impl<T> From for T[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> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

default fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> Erased for T