summaryrefslogtreecommitdiff
path: root/lib/libcrypt
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2021-10-20 16:46:33 +0000
committernia <nia@NetBSD.org>2021-10-20 16:46:33 +0000
commit7d4e4801a4d416d2d9391ac86607ad86f855918c (patch)
treecf4b6556ef418596ca21792bc5e9ad12e650d93c /lib/libcrypt
parent2a507940c454c59f49025ef6aca37e6ad1189255 (diff)
crypt(3): For argon2, default to time=3.
Good enough for a 50MHz SPARC, a shark, and the spec.
Diffstat (limited to 'lib/libcrypt')
-rw-r--r--lib/libcrypt/crypt-argon2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypt/crypt-argon2.c b/lib/libcrypt/crypt-argon2.c
index 29ba5fc422d..6b8932578b0 100644
--- a/lib/libcrypt/crypt-argon2.c
+++ b/lib/libcrypt/crypt-argon2.c
@@ -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;