Enum emerald_rs::keystore::Kdf [] [src]

pub enum Kdf {
    Pbkdf2 {
        prf: Prf,
        c: u32,
    },
    Scrypt {
        n: u32,
        r: u32,
        p: u32,
    },
}

Key derivation function

Variants

PBKDF2 (not recommended, specified in (RFC 2898)[https://tools.ietf.org/html/rfc2898])

Fields of Pbkdf2

Pseudo-Random Functions (HMAC-SHA-256 by default)

Number of iterations (262144 by default)

Scrypt (by default, specified in (RPC 7914)[https://tools.ietf.org/html/rfc7914])

Fields of Scrypt

Number of iterations (19201 by default)

Block size for the underlying hash (8 by default)

Parallelization factor (1 by default)

Methods

impl Kdf
[src]

Important traits for Vec<u8>
[src]

Derive fixed size key for given salt and passphrase

Trait Implementations

impl Clone for Kdf
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Kdf
[src]

impl Debug for Kdf
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Kdf
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Kdf
[src]

impl Default for Kdf
[src]

[src]

Returns the "default value" for a type. Read more

impl From<KdfDepthLevel> for Kdf
[src]

[src]

Performs the conversion.

impl From<u32> for Kdf
[src]

[src]

Performs the conversion.

impl From<(u32, u32, u32)> for Kdf
[src]

[src]

Performs the conversion.

impl FromStr for Kdf
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Kdf
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Kdf

impl Sync for Kdf