Changeset View
Changeset View
Standalone View
Standalone View
lib/libcrypt/crypt.h
Show All 28 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
* | * | ||||
*/ | */ | ||||
/* magic sizes */ | /* magic sizes */ | ||||
#define MD4_SIZE 16 | #define MD4_SIZE 16 | ||||
#define MD5_SIZE 16 | #define MD5_SIZE 16 | ||||
#define CRYPT_SALT_MAX_LEN 16 | |||||
int crypt_des(const char *pw, const char *salt, char *buf); | int crypt_des(const char *pw, const char *salt, char *buf); | ||||
int crypt_md5(const char *pw, const char *salt, char *buf); | int crypt_md5(const char *pw, const char *salt, char *buf); | ||||
int crypt_nthash(const char *pw, const char *salt, char *buf); | int crypt_nthash(const char *pw, const char *salt, char *buf); | ||||
int crypt_blowfish(const char *pw, const char *salt, char *buf); | int crypt_blowfish(const char *pw, const char *salt, char *buf); | ||||
int crypt_sha256 (const char *pw, const char *salt, char *buf); | int crypt_sha256(const char *pw, const char *salt, char *buf); | ||||
int crypt_sha512 (const char *pw, const char *salt, char *buf); | int crypt_sha512(const char *pw, const char *salt, char *buf); | ||||
extern void _crypt_to64(char *s, u_long v, int n); | extern void _crypt_to64(char *s, u_long v, int n); | ||||
extern void b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, char **cp); | extern void b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, char **cp); |