PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static int | calc_s2k_simple (PGP_S2K *s2k, PX_MD *md, const uint8 *key, unsigned key_len) |
static int | calc_s2k_salted (PGP_S2K *s2k, PX_MD *md, const uint8 *key, unsigned key_len) |
static int | calc_s2k_iter_salted (PGP_S2K *s2k, PX_MD *md, const uint8 *key, unsigned key_len) |
static uint8 | decide_s2k_iter (unsigned rand_byte, int count) |
int | pgp_s2k_fill (PGP_S2K *s2k, int mode, int digest_algo, int count) |
int | pgp_s2k_read (PullFilter *src, PGP_S2K *s2k) |
int | pgp_s2k_process (PGP_S2K *s2k, int cipher, const uint8 *key, int key_len) |
|
static |
Definition at line 126 of file pgp-s2k.c.
References buf, PGP_S2K::iter, PGP_S2K::key, sort-test::key, PGP_S2K::key_len, PGP_MAX_DIGEST, PGP_S2K_SALT, px_md_finish, px_md_reset, px_md_result_size, px_md_update, px_memset(), s2k_decode_count, and PGP_S2K::salt.
Referenced by pgp_s2k_process().
|
static |
Definition at line 82 of file pgp-s2k.c.
References buf, PGP_S2K::key, sort-test::key, PGP_S2K::key_len, PGP_MAX_DIGEST, PGP_S2K_SALT, px_md_finish, px_md_reset, px_md_result_size, px_md_update, px_memset(), and PGP_S2K::salt.
Referenced by pgp_s2k_process().
|
static |
Definition at line 38 of file pgp-s2k.c.
References buf, PGP_S2K::key, sort-test::key, PGP_S2K::key_len, PGP_MAX_DIGEST, px_md_finish, px_md_reset, px_md_result_size, px_md_update, and px_memset().
Referenced by pgp_s2k_process().
|
static |
Definition at line 209 of file pgp-s2k.c.
References s2k_decode_count.
Referenced by pgp_s2k_fill().
int pgp_s2k_fill | ( | PGP_S2K * | s2k, |
int | mode, | ||
int | digest_algo, | ||
int | count | ||
) |
Definition at line 223 of file pgp-s2k.c.
References decide_s2k_iter(), PGP_S2K::digest_algo, PGP_S2K::iter, PGP_S2K::mode, mode, pg_strong_random(), PGP_S2K_ISALTED, PGP_S2K_SALT, PGP_S2K_SALTED, PGP_S2K_SIMPLE, PXE_NO_RANDOM, PXE_PGP_BAD_S2K_MODE, res, and PGP_S2K::salt.
Referenced by init_s2k_key().
Definition at line 279 of file pgp-s2k.c.
References calc_s2k_iter_salted(), calc_s2k_salted(), calc_s2k_simple(), PGP_S2K::digest_algo, sort-test::key, PGP_S2K::key_len, PGP_S2K::mode, pgp_get_cipher_key_size(), pgp_load_digest(), px_md_free, PXE_PGP_BAD_S2K_MODE, PXE_PGP_UNSUPPORTED_CIPHER, and res.
Referenced by init_s2k_key(), parse_symenc_sesskey(), and process_secret_key().
int pgp_s2k_read | ( | PullFilter * | src, |
PGP_S2K * | s2k | ||
) |
Definition at line 253 of file pgp-s2k.c.
References PGP_S2K::digest_algo, GETBYTE, PGP_S2K::iter, PGP_S2K::mode, pullf_read_fixed(), PXE_PGP_BAD_S2K_MODE, res, and PGP_S2K::salt.
Referenced by parse_symenc_sesskey(), and process_secret_key().