Enum emerald_rs::keystore::Prf
[−]
[src]
pub enum Prf { HmacSha256, }
Pseudo-Random Functions (PRFs)
Variants
HmacSha256
HMAC-SHA-256 (specified in (RFC 4868)[https://tools.ietf.org/html/rfc4868])
Methods
impl Prf
[src]
fn hmac(&self, passphrase: &str) -> Hmac<Sha256>
[src]
Calculate hashed message authentication code using SHA-256 digest
Trait Implementations
impl Clone for Prf
[src]
fn clone(&self) -> Prf
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Prf
[src]
impl Debug for Prf
[src]
impl PartialEq for Prf
[src]
fn eq(&self, __arg_0: &Prf) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Prf
[src]
impl Default for Prf
[src]
impl FromStr for Prf
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more