diff options
author | 2013-12-19 14:31:07 +0000 | |
---|---|---|
committer | 2013-12-19 14:31:07 +0000 | |
commit | 511416933dda6b6d1c3a05b14dee65acaf3e0b62 (patch) | |
tree | 44aaf04564c7f143df8d378e6775d705eb4ed409 /lib/libc | |
parent | plug mem leak; Ok benno@ (diff) | |
download | wireguard-openbsd-511416933dda6b6d1c3a05b14dee65acaf3e0b62.tar.xz wireguard-openbsd-511416933dda6b6d1c3a05b14dee65acaf3e0b62.zip |
pseudo-code corrections from Solar Designer <solar@openwall.com>
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/crypt/bcrypt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c index e76f277718f..f27e77eb5fd 100644 --- a/lib/libc/crypt/bcrypt.c +++ b/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.25 2012/09/04 22:16:17 tedu Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.26 2013/12/19 14:31:07 deraadt Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> @@ -34,10 +34,10 @@ * <dm@lcs.mit.edu> and works as follows: * * 1. state := InitState () - * 2. state := ExpandKey (state, salt, password) 3. - * REPEAT rounds: + * 2. state := ExpandKey (state, salt, password) + * 3. REPEAT rounds: + * state := ExpandKey (state, 0, password) * state := ExpandKey (state, 0, salt) - * state := ExpandKey(state, 0, password) * 4. ctext := "OrpheanBeholderScryDoubt" * 5. REPEAT 64: * ctext := Encrypt_ECB (state, ctext); |