crypt(3): For argon2, default to time=3.

Good enough for a 50MHz SPARC, a shark, and the spec.
This commit is contained in:
nia 2021-10-20 16:46:33 +00:00
parent 364b5e2621
commit ac4429015a
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ estimate_argon2_params(argon2_type atype, uint32_t *etime,
size_t max_mem_sz = sizeof(max_mem);
/* low values from argon2 test suite... */
uint32_t memory = 256;
uint32_t time = 2;
uint32_t time = 3;
uint32_t threads = 1;
if (*ememory < ARGON2_MIN_MEMORY) {
@ -226,7 +226,7 @@ error:
*ethreads = threads;
return 0;
reset:
time = 2;
time = 3;
memory = 256;
threads = 1;
goto error;