Module Name:    src
Committed By:   nia
Date:           Wed Oct 20 16:46:34 UTC 2021

Modified Files:
        src/lib/libcrypt: crypt-argon2.c

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

Good enough for a 50MHz SPARC, a shark, and the spec.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libcrypt/crypt-argon2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcrypt/crypt-argon2.c
diff -u src/lib/libcrypt/crypt-argon2.c:1.12 src/lib/libcrypt/crypt-argon2.c:1.13
--- src/lib/libcrypt/crypt-argon2.c:1.12	Wed Oct 20 15:35:42 2021
+++ src/lib/libcrypt/crypt-argon2.c	Wed Oct 20 16:46:33 2021
@@ -156,7 +156,7 @@ estimate_argon2_params(argon2_type atype
 	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;

Reply via email to