diff options
| author | nia <nia@NetBSD.org> | 2021-10-20 13:03:29 +0000 |
|---|---|---|
| committer | nia <nia@NetBSD.org> | 2021-10-20 13:03:29 +0000 |
| commit | 0247bda5abe3409c65a9bd05445d4fc577419b17 (patch) | |
| tree | 9abae421ea752e5694df11c6698fd0582f4d4f33 /tests/kernel/kqueue | |
| parent | 09c0e16799473df95b3bb68e873fa6d8a03b71bd (diff) | |
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.
Diffstat (limited to 'tests/kernel/kqueue')
0 files changed, 0 insertions, 0 deletions
