[−][src]Enum ethereum_rust_utils::keystore::Prf
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]
impl Prf
pub fn hmac(&self, passphrase: &str) -> Hmac<Sha256>
[src]
pub fn hmac(&self, passphrase: &str) -> Hmac<Sha256>
Calculate hashed message authentication code using SHA-256 digest
pub fn hmac512(&self, passphrase: &str) -> Hmac<Sha512>
[src]
pub fn hmac512(&self, passphrase: &str) -> Hmac<Sha512>
Calculate hashed message authentication code using SHA-512 digest
Trait Implementations
impl Clone for Prf
[src]
impl Clone for Prf
fn clone(&self) -> Prf
[src]
fn clone(&self) -> Prf
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Prf
[src]
impl Copy for Prf
impl Eq for Prf
[src]
impl Eq for Prf
impl Default for Prf
[src]
impl Default for Prf
impl PartialEq<Prf> for Prf
[src]
impl PartialEq<Prf> for Prf
fn eq(&self, other: &Prf) -> bool
[src]
fn eq(&self, other: &Prf) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for Prf
[src]
impl Debug for Prf
impl Display for Prf
[src]
impl Display for Prf
impl FromStr for Prf
[src]
impl FromStr for Prf
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
impl Serialize for Prf
[src]
impl Serialize for Prf
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl<'de> Deserialize<'de> for Prf
[src]
impl<'de> Deserialize<'de> for Prf
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
fn equivalent(&self, key: &K) -> bool