crypt(3): For argon2, default to time=3.
Good enough for a 50MHz SPARC, a shark, and the spec.
This commit is contained in:
parent
364b5e2621
commit
ac4429015a
|
@ -156,7 +156,7 @@ estimate_argon2_params(argon2_type atype, uint32_t *etime,
|
||||||
size_t max_mem_sz = sizeof(max_mem);
|
size_t max_mem_sz = sizeof(max_mem);
|
||||||
/* low values from argon2 test suite... */
|
/* low values from argon2 test suite... */
|
||||||
uint32_t memory = 256;
|
uint32_t memory = 256;
|
||||||
uint32_t time = 2;
|
uint32_t time = 3;
|
||||||
uint32_t threads = 1;
|
uint32_t threads = 1;
|
||||||
|
|
||||||
if (*ememory < ARGON2_MIN_MEMORY) {
|
if (*ememory < ARGON2_MIN_MEMORY) {
|
||||||
|
@ -226,7 +226,7 @@ error:
|
||||||
*ethreads = threads;
|
*ethreads = threads;
|
||||||
return 0;
|
return 0;
|
||||||
reset:
|
reset:
|
||||||
time = 2;
|
time = 3;
|
||||||
memory = 256;
|
memory = 256;
|
||||||
threads = 1;
|
threads = 1;
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue