diff --git a/packages/argon2/README.md b/packages/argon2/README.md index 10a590b5..6222aa4f 100644 --- a/packages/argon2/README.md +++ b/packages/argon2/README.md @@ -54,7 +54,7 @@ export interface Options { * * Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. * - * The default value is 4096, meaning a pool of 4 MiB per thread. + * The default value is 19456, meaning a pool of 19 MiB per thread. */ memoryCost?: number | undefined | null /** @@ -62,7 +62,7 @@ export interface Options { * * Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. * - * The default value is 3. + * The default value is 2. */ timeCost?: number | undefined | null /** diff --git a/packages/argon2/index.d.ts b/packages/argon2/index.d.ts index c9efa923..411f86eb 100644 --- a/packages/argon2/index.d.ts +++ b/packages/argon2/index.d.ts @@ -33,7 +33,7 @@ export interface Options { * * Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. * - * The default value is 4096, meaning a pool of 4 MiB per thread. + * The default value is 19456, meaning a pool of 19 MiB per thread. */ memoryCost?: number /** @@ -41,7 +41,7 @@ export interface Options { * * Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. * - * The default value is 3. + * The default value is 2. */ timeCost?: number /** diff --git a/packages/argon2/src/lib.rs b/packages/argon2/src/lib.rs index 06dc12bf..f29dcac4 100644 --- a/packages/argon2/src/lib.rs +++ b/packages/argon2/src/lib.rs @@ -68,14 +68,14 @@ pub struct Options { /// /// Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. /// - /// The default value is 4096, meaning a pool of 4 MiB per thread. + /// The default value is 19456, meaning a pool of 19 MiB per thread. pub memory_cost: Option, /// 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. /// /// Value is an integer in decimal (1 to 10 digits), between 1 and (2^32)-1. /// - /// The default value is 3. + /// The default value is 2. pub time_cost: Option, /// 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.