Struct scrypt::ScryptParams[][src]

pub struct ScryptParams { /* fields omitted */ }

The Scrypt parameter values.

Methods

impl ScryptParams
[src]

Create a new instance of ScryptParams.

Arguments

  • log_n - The log2 of the Scrypt parameter N
  • r - The Scrypt parameter r
  • p - The Scrypt parameter p

Conditions

  • log_n must be less than 64
  • r must be greater than 0 and less than or equal to 4294967295
  • p must be greater than 0 and less than 4294967295

Recommended values sufficient for most use-cases

  • log_n = 15 (n = 32768)
  • r = 8
  • p = 1

Trait Implementations

impl Clone for ScryptParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ScryptParams
[src]

Auto Trait Implementations