Skip to content

Commit

Permalink
Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Dec 14, 2024
1 parent f57fb6d commit 65890cf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@ Options:
-l, --length <LENGTH>
Length of the derived result (must be greater than 9 and lesser than or equal to 64) [default: 32]
--scrypt-n <SCRYPT_N>
Scrypt CPU/memory cost parameter (must be lesser than 18446744073709551615) [default: 1048576]
Scrypt CPU/memory cost parameter (must be lesser than or equal 18446744073709551615) [default: 1048576]
--scrypt-r <SCRYPT_R>
Scrypt block size parameter, which fine-tunes sequential memory read size and performance (must be greater than 0 and lesser than or equal to 4294967295) [default: 8]
--scrypt-p <SCRYPT_P>
Scrypt parallelization parameter (must be greater than 0 and lesser than 4294967295) [default: 1]
Scrypt parallelization parameter (must be greater than 0 and lesser than or equal 4294967295) [default: 1]
--argon2-m-cost <ARGON2_M_COST>
Argon2 number of 1 KiB memory block (must be greater than 8 and lesser than 4294967295) [default: 2097152]
Argon2 number of 1 KiB memory block (must be greater than 8 and lesser than or equal 4294967295) [default: 2097152]
--argon2-t-cost <ARGON2_T_COST>
Argon2 number of iterations (must be greater than 2 and lesser than 4294967295) [default: 2]
Argon2 number of iterations (must be greater than 2 and lesser than or equal 4294967295) [default: 2]
--balloon-s-cost <BALLOON_S_COST>
Balloon Hash space (memory) cost number of 1 KiB memory block (must be greater than 1 and lesser than 4294967295) [default: 131072]
Balloon Hash space (memory) cost number of 1 KiB memory block (must be greater than 1 and lesser than or equal 4294967295) [default: 131072]
--balloon-t-cost <BALLOON_T_COST>
Balloon Hash number of iterations (must be greater than 1 and lesser than 4294967295) [default: 1]
Balloon Hash number of iterations (must be greater than 1 and lesser than or equal 4294967295) [default: 1]
--output <OUTPUT>
Optional path for storing the encrypted output
--checkpoint-dir <CHECKPOINT_DIR>
Expand Down Expand Up @@ -181,7 +181,7 @@ Usage: slowkey stability-test [OPTIONS] --tasks <TASKS>

Options:
-t, --tasks <TASKS> Number of tasks
-i, --iterations <ITERATIONS> Number of iterations to perform (must be greater than 0 and lesser than 2000) [default: 2000]
-i, --iterations <ITERATIONS> Number of iterations to perform (must be greater than 0 and lesser than or equal 2000) [default: 2000]
-h, --help Print help
```
Expand Down
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ enum Commands {
#[arg(
long,
default_value = ScryptOptions::DEFAULT_N.to_string(),
help = format!("Scrypt CPU/memory cost parameter (must be lesser than {})", ScryptOptions::MAX_N)
help = format!("Scrypt CPU/memory cost parameter (must be lesser than or equal {})", ScryptOptions::MAX_N)
)]
scrypt_n: u64,

Expand All @@ -99,32 +99,32 @@ enum Commands {
#[arg(
long,
default_value = ScryptOptions::DEFAULT_P.to_string(),
help = format!("Scrypt parallelization parameter (must be greater than {} and lesser than {})", ScryptOptions::MIN_P, ScryptOptions::MAX_P)
help = format!("Scrypt parallelization parameter (must be greater than {} and lesser than or equal {})", ScryptOptions::MIN_P, ScryptOptions::MAX_P)
)]
scrypt_p: u32,

#[arg(
long,
default_value = Argon2idOptions::DEFAULT_M_COST.to_string(),
help = format!("Argon2 number of 1 KiB memory block (must be greater than {} and lesser than {})", Argon2idOptions::MIN_M_COST, Argon2idOptions::MAX_M_COST))]
help = format!("Argon2 number of 1 KiB memory block (must be greater than {} and lesser than or equal {})", Argon2idOptions::MIN_M_COST, Argon2idOptions::MAX_M_COST))]
argon2_m_cost: u32,

#[arg(
long,
default_value = Argon2idOptions::DEFAULT_T_COST.to_string(),
help = format!("Argon2 number of iterations (must be greater than {} and lesser than {})", Argon2idOptions::MIN_T_COST, Argon2idOptions::MAX_T_COST))]
help = format!("Argon2 number of iterations (must be greater than {} and lesser than or equal {})", Argon2idOptions::MIN_T_COST, Argon2idOptions::MAX_T_COST))]
argon2_t_cost: u32,

#[arg(
long,
default_value = BalloonHashOptions::DEFAULT_S_COST.to_string(),
help = format!("Balloon Hash space (memory) cost number of 1 KiB memory block (must be greater than {} and lesser than {})", BalloonHashOptions::MIN_S_COST, BalloonHashOptions::MAX_S_COST))]
help = format!("Balloon Hash space (memory) cost number of 1 KiB memory block (must be greater than {} and lesser than or equal {})", BalloonHashOptions::MIN_S_COST, BalloonHashOptions::MAX_S_COST))]
balloon_s_cost: u32,

#[arg(
long,
default_value = BalloonHashOptions::DEFAULT_T_COST.to_string(),
help = format!("Balloon Hash number of iterations (must be greater than {} and lesser than {})", BalloonHashOptions::MIN_T_COST, BalloonHashOptions::MAX_T_COST))]
help = format!("Balloon Hash number of iterations (must be greater than {} and lesser than or equal {})", BalloonHashOptions::MIN_T_COST, BalloonHashOptions::MAX_T_COST))]
balloon_t_cost: u32,

#[arg(long, help = "Optional path for storing the encrypted output")]
Expand Down Expand Up @@ -296,7 +296,7 @@ enum Commands {
long,
short,
default_value = STABILITY_TEST_ITERATIONS.to_string(),
help = format!("Number of iterations to perform (must be greater than {} and lesser than {})", 0, STABILITY_TEST_ITERATIONS))]
help = format!("Number of iterations to perform (must be greater than {} and lesser than or equal {})", 0, STABILITY_TEST_ITERATIONS))]
iterations: usize,
},
}
Expand Down

0 comments on commit 65890cf

Please sign in to comment.