diff options
| author | deraadt <> | 2013-12-19 14:31:07 +0000 |
|---|---|---|
| committer | deraadt <> | 2013-12-19 14:31:07 +0000 |
| commit | 9944b4747b70169a21b50d6ddc94f6b91cec7c2a (patch) | |
| tree | 900dd233ec070d22f02635d24546d5d0340d72e2 /src/lib/libc | |
| parent | aa6f57b83a46777766301b4230a4d34b84aaa29d (diff) | |
| download | openbsd-9944b4747b70169a21b50d6ddc94f6b91cec7c2a.tar.gz openbsd-9944b4747b70169a21b50d6ddc94f6b91cec7c2a.tar.bz2 openbsd-9944b4747b70169a21b50d6ddc94f6b91cec7c2a.zip | |
pseudo-code corrections from Solar Designer <solar@openwall.com>
Diffstat (limited to 'src/lib/libc')
| -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); |
