diff options
author | deraadt <> | 2013-12-19 14:31:07 +0000 |
---|---|---|
committer | deraadt <> | 2013-12-19 14:31:07 +0000 |
commit | 3c960933763956e6ab55d204e71d003e258f726a (patch) | |
tree | 900dd233ec070d22f02635d24546d5d0340d72e2 | |
parent | d8a859e047747940bda25e0117035deac310f330 (diff) | |
download | openbsd-3c960933763956e6ab55d204e71d003e258f726a.tar.gz openbsd-3c960933763956e6ab55d204e71d003e258f726a.tar.bz2 openbsd-3c960933763956e6ab55d204e71d003e258f726a.zip |
pseudo-code corrections from Solar Designer <solar@openwall.com>
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index e76f277718..f27e77eb5f 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.25 2012/09/04 22:16:17 tedu Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.26 2013/12/19 14:31:07 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
@@ -34,10 +34,10 @@ | |||
34 | * <dm@lcs.mit.edu> and works as follows: | 34 | * <dm@lcs.mit.edu> and works as follows: |
35 | * | 35 | * |
36 | * 1. state := InitState () | 36 | * 1. state := InitState () |
37 | * 2. state := ExpandKey (state, salt, password) 3. | 37 | * 2. state := ExpandKey (state, salt, password) |
38 | * REPEAT rounds: | 38 | * 3. REPEAT rounds: |
39 | * state := ExpandKey (state, 0, password) | ||
39 | * state := ExpandKey (state, 0, salt) | 40 | * state := ExpandKey (state, 0, salt) |
40 | * state := ExpandKey(state, 0, password) | ||
41 | * 4. ctext := "OrpheanBeholderScryDoubt" | 41 | * 4. ctext := "OrpheanBeholderScryDoubt" |
42 | * 5. REPEAT 64: | 42 | * 5. REPEAT 64: |
43 | * ctext := Encrypt_ECB (state, ctext); | 43 | * ctext := Encrypt_ECB (state, ctext); |