44 if (res == NULL || strlen(res) >
len - 1)
74 char *(*crypt) (
const char *psw,
const char *salt,
100 if (strncmp(salt,
c->id,
c->id_len) == 0)
104 if (
c->crypt == NULL)
107 return c->crypt(psw, salt,
buf,
len);
117 char *(*gen) (
unsigned long count,
const char *
input,
int size,
118 char *
output,
int output_size);
130 {NULL, NULL, 0, 0, 0, 0}
char * _crypt_blowfish_rn(const char *key, const char *setting, char *output, int size)
char * px_crypt_des(const char *key, const char *setting)
char * _crypt_gensalt_traditional_rn(unsigned long count, const char *input, int size, char *output, int output_size)
char * _crypt_gensalt_md5_rn(unsigned long count, const char *input, int size, char *output, int output_size)
char * _crypt_gensalt_blowfish_rn(unsigned long count, const char *input, int size, char *output, int output_size)
char * _crypt_gensalt_extended_rn(unsigned long count, const char *input, int size, char *output, int output_size)
char * px_crypt_md5(const char *pw, const char *salt, char *passwd, unsigned dstlen)
void CheckBuiltinCryptoMode(void)
bool pg_strong_random(void *buf, size_t len)
int pg_strcasecmp(const char *s1, const char *s2)
static char * run_crypt_des(const char *psw, const char *salt, char *buf, unsigned len)
int px_gen_salt(const char *salt_type, char *buf, int rounds)
static const struct px_crypt_algo px_crypt_list[]
static char * run_crypt_bf(const char *psw, const char *salt, char *buf, unsigned len)
static struct generator gen_list[]
char * px_crypt(const char *psw, const char *salt, char *buf, unsigned len)
static char * run_crypt_md5(const char *psw, const char *salt, char *buf, unsigned len)
void px_memset(void *ptr, int c, size_t len)
#define PXE_BAD_SALT_ROUNDS
#define PXE_UNKNOWN_SALT_ALGO
char *(* gen)(unsigned long count, const char *input, int size, char *output, int output_size)