diff options
author | tedu <> | 2016-06-26 21:04:08 +0000 |
---|---|---|
committer | tedu <> | 2016-06-26 21:04:08 +0000 |
commit | d33e996eb7c6b7d4569a9accf40b58698657f85e (patch) | |
tree | 238947be7a321f1c28b831e5c7b03e910404c1ed /src/lib/libc | |
parent | 9c7ce0e373193152baa3074a5e6ec4a358cc48f9 (diff) | |
download | openbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.tar.gz openbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.tar.bz2 openbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.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 'src/lib/libc')
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index a8c1b9e7c8..940daf233e 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bcrypt.c,v 1.55 2015/09/13 15:33:48 guenther Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.56 2016/06/26 21:04:08 tedu Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
@@ -261,7 +261,7 @@ _bcrypt_autorounds(void) | |||
261 | duration *= 2; | 261 | duration *= 2; |
262 | } | 262 | } |
263 | /* too slow? speed it up. */ | 263 | /* too slow? speed it up. */ |
264 | while (r > 4 && duration > 120000) { | 264 | while (r > 6 && duration > 120000) { |
265 | r -= 1; | 265 | r -= 1; |
266 | duration /= 2; | 266 | duration /= 2; |
267 | } | 267 | } |