summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/crypt/bcrypt.c8
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);