Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcrypt crypt(3): For argon2, default to time=3.



details:   https://anonhg.NetBSD.org/src/rev/922385a0e977
branches:  trunk
changeset: 989930:922385a0e977
user:      nia <nia%NetBSD.org@localhost>
date:      Wed Oct 20 16:46:33 2021 +0000

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

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

diffstat:

 lib/libcrypt/crypt-argon2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r b4a97922545f -r 922385a0e977 lib/libcrypt/crypt-argon2.c
--- a/lib/libcrypt/crypt-argon2.c       Wed Oct 20 15:35:42 2021 +0000
+++ b/lib/libcrypt/crypt-argon2.c       Wed Oct 20 16:46:33 2021 +0000
@@ -156,7 +156,7 @@
        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 @@
        *ethreads = threads;
        return 0;
 reset:
-       time = 2;
+       time = 3;
        memory = 256;
        threads = 1;
        goto error;



Home | Main Index | Thread Index | Old Index