|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: bcrypt.c,v 1.10 1997/09/10 23:15:42 deraadt Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: bcrypt.c,v 1.11 1998/02/18 16:10:53 provos Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
|
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
@ -140,7 +140,7 @@ decode_base64(buffer, len, data) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if __STDC__ |
|
|
|
|
|
|
|
|
#ifdef __STDC__ |
|
|
static void |
|
|
static void |
|
|
encode_salt(char *salt, u_int8_t *csalt, u_int16_t clen, u_int8_t logr) |
|
|
encode_salt(char *salt, u_int8_t *csalt, u_int16_t clen, u_int8_t logr) |
|
|
#else |
|
|
#else |
|
@ -166,7 +166,7 @@ encode_salt(salt, csalt, clen, logr) |
|
|
seems sensible. |
|
|
seems sensible. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#if __STDC__ |
|
|
|
|
|
|
|
|
#ifdef __STDC__ |
|
|
char * |
|
|
char * |
|
|
bcrypt_gensalt(u_int8_t log_rounds) |
|
|
bcrypt_gensalt(u_int8_t log_rounds) |
|
|
#else |
|
|
#else |
|
@ -293,7 +293,7 @@ bcrypt(key, salt) |
|
|
return encrypted; |
|
|
return encrypted; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if __STDC__ |
|
|
|
|
|
|
|
|
#ifdef __STDC__ |
|
|
static void |
|
|
static void |
|
|
encode_base64(u_int8_t *buffer, u_int8_t *data, u_int16_t len) |
|
|
encode_base64(u_int8_t *buffer, u_int8_t *data, u_int16_t len) |
|
|
#else |
|
|
#else |
|
|