summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authortedu <>2016-06-26 21:04:08 +0000
committertedu <>2016-06-26 21:04:08 +0000
commit66e8c7ae4cf3bb71d170c1120a6f991ff49d58cf (patch)
tree238947be7a321f1c28b831e5c7b03e910404c1ed /src/lib/libc/crypt
parent783006207145068e182de503ec58feabf7c79aaf (diff)
downloadopenbsd-66e8c7ae4cf3bb71d170c1120a6f991ff49d58cf.tar.gz
openbsd-66e8c7ae4cf3bb71d170c1120a6f991ff49d58cf.tar.bz2
openbsd-66e8c7ae4cf3bb71d170c1120a6f991ff49d58cf.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/crypt')
-rw-r--r--src/lib/libc/crypt/bcrypt.c4
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 }