Skip to content

Commit 4ba2583

Browse files
authored
docs(argon2): fix default argon2 params docs #982
1 parent 800fdb7 commit 4ba2583

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/argon2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ export interface Options {
5353
*
5454
* Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
5555
*
56-
* The default value is 4096, meaning a pool of 4 MiB per thread.
56+
* The default value is 19456, meaning a pool of 19 MiB per thread.
5757
*/
5858
memoryCost?: number | undefined | null
5959
/**
6060
* The time cost is the amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute.
6161
*
6262
* Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
6363
*
64-
* The default value is 3.
64+
* The default value is 2.
6565
*/
6666
timeCost?: number | undefined | null
6767
/**

packages/argon2/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ export interface Options {
3333
*
3434
* Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
3535
*
36-
* The default value is 4096, meaning a pool of 4 MiB per thread.
36+
* The default value is 19456, meaning a pool of 19 MiB per thread.
3737
*/
3838
memoryCost?: number
3939
/**
4040
* The time cost is the amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute.
4141
*
4242
* Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
4343
*
44-
* The default value is 3.
44+
* The default value is 2.
4545
*/
4646
timeCost?: number
4747
/**

packages/argon2/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ pub struct Options {
6767
///
6868
/// Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
6969
///
70-
/// The default value is 4096, meaning a pool of 4 MiB per thread.
70+
/// The default value is 19456, meaning a pool of 19 MiB per thread.
7171
pub memory_cost: Option<u32>,
7272

7373
/// The time cost is the amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute.
7474
///
7575
/// Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1.
7676
///
77-
/// The default value is 3.
77+
/// The default value is 2.
7878
pub time_cost: Option<u32>,
7979

8080
/// The hash length is the length of the hash function output in bytes. Note that the resulting hash is encoded with Base 64, so the digest will be ~1/3 longer.

0 commit comments

Comments
 (0)