diff options
author | 2016-06-26 21:04:08 +0000 | |
---|---|---|
committer | 2016-06-26 21:04:08 +0000 | |
commit | 0d28cf8dd894cb35503a373e93f47cd3af9bd4b1 (patch) | |
tree | 31d60c69c655da89a27dd4ee947be085959da133 /lib/libc/crypt/bcrypt.c | |
parent | upgrade selected login.conf to use auto rounds for bcrypt. the installer (diff) | |
download | wireguard-openbsd-0d28cf8dd894cb35503a373e93f47cd3af9bd4b1.tar.xz wireguard-openbsd-0d28cf8dd894cb35503a373e93f47cd3af9bd4b1.zip |
increase the minimum for auto rounds to 6. that was the previous low bound
for login.conf, and we don't want to go lower.
Diffstat (limited to 'lib/libc/crypt/bcrypt.c')
-rw-r--r-- | lib/libc/crypt/bcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c index a8c1b9e7c86..940daf233e3 100644 --- a/lib/libc/crypt/bcrypt.c +++ b/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.55 2015/09/13 15:33:48 guenther Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.56 2016/06/26 21:04:08 tedu Exp $ */ /* * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> @@ -261,7 +261,7 @@ _bcrypt_autorounds(void) duration *= 2; } /* too slow? speed it up. */ - while (r > 4 && duration > 120000) { + while (r > 6 && duration > 120000) { r -= 1; duration /= 2; } |