The NetBSD Project

CVS log for src/lib/libcrypt/crypt-argon2.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libcrypt

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 20 20:21:44 2021 UTC (5 days, 3 hours ago) by nia
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +7 -1 lines
Diff to previous 1.13 (colored)

Be a little bit more eager to let Argon2 use memory.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 20 16:46:33 2021 UTC (5 days, 6 hours ago) by nia
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

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

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

Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 20 15:35:42 2021 UTC (5 days, 8 hours ago) by nia
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

crypt(3): return 0 -> return NULL for function returning char *

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 20 13:03:29 2021 UTC (5 days, 10 hours ago) by nia
Branch: MAIN
Changes since 1.10: +110 -0 lines
Diff to previous 1.10 (colored)

crypt(3): Adapt default Argon2 parameters to system performance

If the parameters are unspecified:

- Set the default memory consumption based on the amount of memory
available to userspace.

The algorithm actually slows down incredibly quickly as the "memory"
parameter is increased. We want to avoid running out of memory on low
memory systems, but increase the difficulty of bruteforcing passwords
from systems with a lot of memory. At the same time, we want to avoid
problems when concurrent logins are happening.

- Run a hashing loop for one second with steadily increasing "time"
until we settle on a value for "time". We want to use as much CPU time
as reasonable for computing the password hash without making logins
inconvenient.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 16 10:53:33 2021 UTC (9 days, 12 hours ago) by nia
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

libcrypt: Hide more private symbols by default. Fix style.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 12 15:55:31 2021 UTC (13 days, 7 hours ago) by jhigh
Branch: MAIN
Changes since 1.8: +26 -0 lines
Diff to previous 1.8 (colored)

added missing copyright header. pointed out by nia. no functional change

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 12 15:27:41 2021 UTC (13 days, 8 hours ago) by nia
Branch: MAIN
Changes since 1.7: +0 -1 lines
Diff to previous 1.7 (colored)

crypt(3): clean up some leftover debug goo

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 12 15:25:39 2021 UTC (13 days, 8 hours ago) by nia
Branch: MAIN
Changes since 1.6: +85 -22 lines
Diff to previous 1.6 (colored)

crypt(3): match the Argon2 reference implementation's Base64 exactly

There are too many minor variations regarding padding and exact alphabet
to safely use the implementation in libc or an existing implementation
in libcrypt.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 12 13:24:00 2021 UTC (13 days, 10 hours ago) by nia
Branch: MAIN
Changes since 1.5: +5 -41 lines
Diff to previous 1.5 (colored)

crypt(3): Make Argon2 implementation match the reference impl by
making sure input salts are decoded as base64.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 12 12:11:04 2021 UTC (13 days, 11 hours ago) by nia
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

paranoia: use explicit_memset

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 12 10:51:33 2021 UTC (13 days, 12 hours ago) by nia
Branch: MAIN
Changes since 1.3: +3 -4 lines
Diff to previous 1.3 (colored)

crypt-argon2: Properly honor user's version number.

Follow upstream by defaulting to 0x10 if it's not specified.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 12 09:40:38 2021 UTC (13 days, 13 hours ago) by nia
Branch: MAIN
Changes since 1.2: +21 -11 lines
Diff to previous 1.2 (colored)

crypt-argon2: improve resilience of the parser.

Allow the version number to be unspecified as in the argon2 upstream
test suite, properly defaulting to a version if the v= block is
entirely missing, and treating the remaining block as parameters.

Fix a null pointer derefence when the encoded password is unspecified
in the settings string.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 14 08:34:19 2020 UTC (17 months, 1 week ago) by msaitoh
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Remove extra semicolon.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:12 2020 UTC (18 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.1.4.1: +254 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.1.4.1, Mon Oct 21 02:36:48 2019 UTC (2 years ago) by martin
Branch: phil-wifi
Changes since 1.1: +0 -254 lines
FILE REMOVED

file crypt-argon2.c was added on branch phil-wifi on 2020-04-13 08:03:12 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 21 02:36:48 2019 UTC (2 years ago) by jhigh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Branch point for: phil-wifi

adding argon2 support to libcrypt. argon2 user authentication now
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>