36 #define PX_MAX_CRYPT 128
39 #define PX_MAX_SALT_LEN 128
43 #define PX_XDES_ROUNDS (29 * 25)
46 #define PX_BF_ROUNDS 6
51 char *
px_crypt(
const char *psw,
const char *salt,
char *
buf,
unsigned len);
80 char *passwd,
unsigned dstlen);
char * _crypt_gensalt_extended_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)
int px_gen_salt(const char *salt_type, char *buf, int rounds)
char * px_crypt(const char *psw, const char *salt, char *buf, unsigned len)
char * px_crypt_des(const char *key, const char *setting)
char * _crypt_blowfish_rn(const char *key, const char *setting, char *output, int size)
char * px_crypt_md5(const char *pw, const char *salt, char *passwd, unsigned dstlen)
char * _crypt_gensalt_md5_rn(unsigned long count, const char *input, int size, char *output, int output_size)
char * _crypt_gensalt_traditional_rn(unsigned long count, const char *input, int size, char *output, int output_size)
static pg_noinline void Size size