summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/bcrypt.c
diff options
context:
space:
mode:
authorprovos <>1997-02-16 20:58:17 +0000
committerprovos <>1997-02-16 20:58:17 +0000
commitb0e0ca363d82adf8768f67857659b9590e0e6954 (patch)
treefdc223ac0257494dbbe4e6b0693bcc2a40850e76 /src/lib/libc/crypt/bcrypt.c
parent0a5b7d77fd81d87e46c094bd277936a81ba6ce62 (diff)
downloadopenbsd-b0e0ca363d82adf8768f67857659b9590e0e6954.tar.gz
openbsd-b0e0ca363d82adf8768f67857659b9590e0e6954.tar.bz2
openbsd-b0e0ca363d82adf8768f67857659b9590e0e6954.zip
prelim manpage, cleanup, fixed crippled plaintext: sed does a nice
job on replacing everything, just wouldnt skip it
Diffstat (limited to 'src/lib/libc/crypt/bcrypt.c')
-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 d2b7cd888c..364555b5da 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.2 1997/02/14 18:40:14 provos Exp $ */ 1/* $OpenBSD: bcrypt.c,v 1.3 1997/02/16 20:58:15 provos Exp $ */
2/* 2/*
3 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 3 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
4 * All rights reserved. 4 * All rights reserved.
@@ -13,7 +13,7 @@
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software 14 * 3. All advertising materials mentioning features or use of this software
15 * must display the following acknowledgement: 15 * must display the following acknowledgement:
16 * This product includes software developed by Theo de Raadt. 16 * This product includes software developed by Niels Provos.
17 * 4. The name of the author may not be used to endorse or promote products 17 * 4. The name of the author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission. 18 * derived from this software without specific prior written permission.
19 * 19 *
@@ -37,7 +37,7 @@
37 * REPEAT rounds: 37 * REPEAT rounds:
38 * state := ExpandKey (state, 0, salt) 38 * state := ExpandKey (state, 0, salt)
39 * state := ExpandKey(state, 0, password) 39 * state := ExpandKey(state, 0, password)
40 * 4. ctext := "OpenBSDbcrypthashfunc" 40 * 4. ctext := "OrpheanBeholderScryDoubt"
41 * 5. REPEAT 64: 41 * 5. REPEAT 64:
42 * ctext := Encrypt_ECB (state, ctext); 42 * ctext := Encrypt_ECB (state, ctext);
43 * 6. RETURN Concatenate (salt, ctext); 43 * 6. RETURN Concatenate (salt, ctext);
@@ -187,7 +187,7 @@ bcrypt(key, salt)
187 u_int32_t rounds, i, k; 187 u_int32_t rounds, i, k;
188 u_int16_t j; 188 u_int16_t j;
189 u_int8_t key_len, salt_len, logr; 189 u_int8_t key_len, salt_len, logr;
190 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OpenBSDbcrypthashfunc"; 190 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt";
191 u_int8_t csalt[BCRYPT_MAXSALT]; 191 u_int8_t csalt[BCRYPT_MAXSALT];
192 u_int32_t cdata[BCRYPT_BLOCKS]; 192 u_int32_t cdata[BCRYPT_BLOCKS];
193 /* Discard "$" identifier */ 193 /* Discard "$" identifier */