[−][src]Enum ethereum_rust_utils::keystore::Kdf
Key derivation function
Variants
Pbkdf2
PBKDF2 (not recommended, specified in (RFC 2898)[https://tools.ietf.org/html/rfc2898])
Fields of Pbkdf2
Scrypt
Scrypt (by default, specified in (RPC 7914)[https://tools.ietf.org/html/rfc7914])
Fields of Scrypt
Methods
impl Kdf
[src]
impl Kdf
pub fn derive(&self, len: usize, kdf_salt: &[u8], passphrase: &str) -> Vec<u8>
[src]
pub fn derive(&self, len: usize, kdf_salt: &[u8], passphrase: &str) -> Vec<u8>
Derive fixed size key for given salt and passphrase
Trait Implementations
impl Clone for Kdf
[src]
impl Clone for Kdf
fn clone(&self) -> Kdf
[src]
fn clone(&self) -> Kdf
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 Kdf
[src]
impl Copy for Kdf
impl From<KdfDepthLevel> for Kdf
[src]
impl From<KdfDepthLevel> for Kdf
fn from(sec: KdfDepthLevel) -> Self
[src]
fn from(sec: KdfDepthLevel) -> Self
impl From<u32> for Kdf
[src]
impl From<u32> for Kdf
impl From<(u32, u32, u32)> for Kdf
[src]
impl From<(u32, u32, u32)> for Kdf
impl Eq for Kdf
[src]
impl Eq for Kdf
impl Default for Kdf
[src]
impl Default for Kdf
impl PartialEq<Kdf> for Kdf
[src]
impl PartialEq<Kdf> for Kdf
impl Debug for Kdf
[src]
impl Debug for Kdf
impl Display for Kdf
[src]
impl Display for Kdf
impl FromStr for Kdf
[src]
impl FromStr for Kdf
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 Kdf
[src]
impl Serialize for Kdf
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 Kdf
[src]
impl<'de> Deserialize<'de> for Kdf
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