PostgreSQL Source Code git master
|
Go to the source code of this file.
Data Structures | |
struct | px_crypt_algo |
struct | generator |
Functions | |
static char * | run_crypt_des (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) |
static char * | run_crypt_bf (const char *psw, const char *salt, char *buf, unsigned len) |
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) |
Variables | |
static const struct px_crypt_algo | px_crypt_list [] |
static struct generator | gen_list [] |
char * px_crypt | ( | const char * | psw, |
const char * | salt, | ||
char * | buf, | ||
unsigned | len | ||
) |
Definition at line 90 of file px-crypt.c.
References buf, CheckBuiltinCryptoMode(), px_crypt_algo::id, len, and px_crypt_list.
Referenced by pg_crypt().
int px_gen_salt | ( | const char * | salt_type, |
char * | buf, | ||
int | rounds | ||
) |
Definition at line 134 of file px-crypt.c.
References buf, CheckBuiltinCryptoMode(), 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().
|
static |
Definition at line 61 of file px-crypt.c.
References _crypt_blowfish_rn(), buf, and len.
|
static |
Definition at line 38 of file px-crypt.c.
References buf, len, and px_crypt_des().
|
static |
Definition at line 51 of file px-crypt.c.
References buf, len, and px_crypt_md5().
|
static |
Definition at line 125 of file px-crypt.c.
Referenced by px_gen_salt().
|
static |
Definition at line 79 of file px-crypt.c.
Referenced by px_crypt().