summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/bcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/crypt/bcrypt.c')
-rw-r--r--src/lib/libc/crypt/bcrypt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c
index be049baa74..f3ea849f00 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.14 2001/01/04 21:45:30 todd Exp $ */ 1/* $OpenBSD: bcrypt.c,v 1.15 2002/02/16 21:27:21 millert 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>
@@ -66,11 +66,11 @@
66#define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ 66#define BCRYPT_BLOCKS 6 /* Ciphertext blocks */
67#define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */ 67#define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */
68 68
69char *bcrypt_gensalt __P((u_int8_t)); 69char *bcrypt_gensalt(u_int8_t);
70 70
71static void encode_salt __P((char *, u_int8_t *, u_int16_t, u_int8_t)); 71static void encode_salt(char *, u_int8_t *, u_int16_t, u_int8_t);
72static void encode_base64 __P((u_int8_t *, u_int8_t *, u_int16_t)); 72static void encode_base64(u_int8_t *, u_int8_t *, u_int16_t);
73static void decode_base64 __P((u_int8_t *, u_int16_t, u_int8_t *)); 73static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *);
74 74
75static char encrypted[_PASSWORD_LEN]; 75static char encrypted[_PASSWORD_LEN];
76static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; 76static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1];