PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | PX_MAX_CRYPT 128 |
#define | PX_MAX_SALT_LEN 128 |
#define | PX_XDES_ROUNDS (29 * 25) |
#define | PX_BF_ROUNDS 6 |
Functions | |
char * | px_crypt (const char *psw, const char *salt, char *buf, unsigned len) |
int | px_gen_salt (const char *salt_type, char *buf, int rounds) |
char * | _crypt_gensalt_traditional_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 * | _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_blowfish_rn (const char *key, const char *setting, char *output, int size) |
char * | px_crypt_des (const char *key, const char *setting) |
char * | px_crypt_md5 (const char *pw, const char *salt, char *passwd, unsigned dstlen) |
#define PX_BF_ROUNDS 6 |
Definition at line 46 of file px-crypt.h.
#define PX_MAX_CRYPT 128 |
Definition at line 36 of file px-crypt.h.
#define PX_MAX_SALT_LEN 128 |
Definition at line 39 of file px-crypt.h.
#define PX_XDES_ROUNDS (29 * 25) |
Definition at line 43 of file px-crypt.h.
char* _crypt_blowfish_rn | ( | const char * | key, |
const char * | setting, | ||
char * | output, | ||
int | size | ||
) |
Definition at line 582 of file crypt-blowfish.c.
References BF_atoi64, BF_body, BF_decode(), BF_encode(), BF_ENCRYPT, BF_init_state, BF_itoa64, BF_magic_w, BF_N, BF_set_key(), BF_swap(), CHECK_FOR_INTERRUPTS, data, ereport, errcode(), errmsg(), ERROR, i, sort-test::key, output, px_memset(), R, BF_ctx::S, and size.
char* _crypt_gensalt_blowfish_rn | ( | unsigned long | count, |
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 161 of file crypt-gensalt.c.
References BF_encode(), input, output, and size.
char* _crypt_gensalt_extended_rn | ( | unsigned long | count, |
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 43 of file crypt-gensalt.c.
References _crypt_itoa64, input, output, size, and value.
char* _crypt_gensalt_md5_rn | ( | unsigned long | count, |
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 79 of file crypt-gensalt.c.
References _crypt_itoa64, input, output, size, and value.
char* _crypt_gensalt_traditional_rn | ( | unsigned long | count, |
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
char* px_crypt | ( | const char * | psw, |
const char * | salt, | ||
char * | buf, | ||
unsigned | len | ||
) |
char* px_crypt_des | ( | const char * | key, |
const char * | setting | ||
) |
Definition at line 651 of file crypt-des.c.
References _crypt_a64, _PASSWORD_EFMT1, ascii_to_bin(), des_cipher(), des_init(), des_initialised, des_setkey(), do_des(), ereport, errcode(), errmsg(), ERROR, i, sort-test::key, output, setup_salt(), and strlcpy().
Referenced by run_crypt_des().
char* px_crypt_md5 | ( | const char * | pw, |
const char * | salt, | ||
char * | passwd, | ||
unsigned | dstlen | ||
) |
Definition at line 34 of file crypt-md5.c.
References _crypt_to64(), err(), i, MD5_SIZE, px_find_digest(), px_md_finish, px_md_free, px_md_reset, px_md_update, and px_memset().
Referenced by run_crypt_md5().
int px_gen_salt | ( | const char * | salt_type, |
char * | buf, | ||
int | rounds | ||
) |
Definition at line 132 of file px-crypt.c.
References buf, generator::def_rounds, generator::gen, gen_list, generator::input_len, generator::max_rounds, generator::min_rounds, generator::name, pg_strcasecmp(), pg_strong_random(), PX_MAX_SALT_LEN, px_memset(), PXE_BAD_SALT_ROUNDS, PXE_NO_RANDOM, and PXE_UNKNOWN_SALT_ALGO.
Referenced by pg_gen_salt(), and pg_gen_salt_rounds().