Browse Source

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.
OPENBSD_6_0
tedu 8 years ago
parent
commit
81f4b4678c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/crypt/bcrypt.c

+ 2
- 2
src/lib/libc/crypt/bcrypt.c View File

@ -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> * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
@ -261,7 +261,7 @@ _bcrypt_autorounds(void)
duration *= 2; duration *= 2;
} }
/* too slow? speed it up. */ /* too slow? speed it up. */
while (r > 4 && duration > 120000) {
while (r > 6 && duration > 120000) {
r -= 1; r -= 1;
duration /= 2; duration /= 2;
} }


Loading…
Cancel
Save