PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | error_desc |
Functions | |
void | px_THROW_ERROR (int err) |
const char * | px_strerror (int err) |
void | px_memset (void *ptr, int c, size_t len) |
const char * | px_resolve_alias (const PX_Alias *list, const char *name) |
void | px_set_debug_handler (void(*handler)(const char *)) |
void | px_debug (const char *fmt,...) |
static unsigned | combo_encrypt_len (PX_Combo *cx, unsigned dlen) |
static unsigned | combo_decrypt_len (PX_Combo *cx, unsigned dlen) |
static int | combo_init (PX_Combo *cx, const uint8 *key, unsigned klen, const uint8 *iv, unsigned ivlen) |
static int | combo_encrypt (PX_Combo *cx, const uint8 *data, unsigned dlen, uint8 *res, unsigned *rlen) |
static int | combo_decrypt (PX_Combo *cx, const uint8 *data, unsigned dlen, uint8 *res, unsigned *rlen) |
static void | combo_free (PX_Combo *cx) |
static int | parse_cipher_name (char *full, char **cipher, char **pad) |
int | px_find_combo (const char *name, PX_Combo **res) |
Variables | |
static const struct error_desc | px_err_list [] |
static void(* | debug_handler )(const char *) = NULL |
|
static |
Definition at line 225 of file px.c.
References cx(), data, px_cipher_decrypt, and res.
Referenced by px_find_combo().
|
static |
|
static |
Definition at line 218 of file px.c.
References cx(), data, px_cipher_encrypt, and res.
Referenced by px_find_combo().
|
static |
Definition at line 169 of file px.c.
Referenced by px_find_combo().
|
static |
Definition at line 232 of file px.c.
References cx(), pfree(), px_cipher_free, and px_memset().
Referenced by px_find_combo().
|
static |
Definition at line 181 of file px.c.
References cx(), err(), sort-test::key, palloc0(), pfree(), px_cipher_init, px_cipher_iv_size, and px_cipher_key_size.
Referenced by px_find_combo().
|
static |
Definition at line 243 of file px.c.
References p2, PXE_BAD_FORMAT, and PXE_BAD_OPTION.
Referenced by px_find_combo().
void px_debug | ( | const char * | fmt, |
... | |||
) |
Definition at line 149 of file px.c.
References buf, debug_handler, fmt, va_end(), va_start(), and vsnprintf.
Referenced by _pgp_read_public_key(), bn_to_mpi(), check_key_cksum(), check_key_sha1(), control_cksum(), decrypt_key(), internal_read_key(), mbuf_append(), mdc_finish(), mdcbuf_finish(), mpi_to_bn(), parse_compressed_data(), parse_literal_data(), parse_new_len(), parse_old_len(), parse_symenc_mdc_data(), parse_symenc_sesskey(), pgp_decrypt(), pgp_expect_packet_end(), pgp_mpi_alloc(), pgp_parse_pkt_hdr(), pgp_parse_pubenc_sesskey(), pgp_write_pubenc_sesskey(), process_data_packets(), process_secret_key(), and pullf_read_fixed().
int px_find_combo | ( | const char * | name, |
PX_Combo ** | res | ||
) |
Definition at line 285 of file px.c.
References buf, combo_decrypt(), combo_decrypt_len(), combo_encrypt(), combo_encrypt_len(), combo_free(), combo_init(), cx(), err(), name, palloc0(), parse_cipher_name(), pfree(), pstrdup(), px_cipher_free, px_find_cipher(), PXE_NO_CIPHER, and res.
Referenced by pg_decrypt(), pg_decrypt_iv(), pg_encrypt(), and pg_encrypt_iv().
void px_memset | ( | void * | ptr, |
int | c, | ||
size_t | len | ||
) |
Definition at line 123 of file px.c.
References len.
Referenced by _crypt_blowfish_rn(), calc_key_id(), calc_s2k_iter_salted(), calc_s2k_salted(), calc_s2k_simple(), check_key_sha1(), clear_and_pfree(), combo_free(), copy_crlf(), create_secmsg(), encrypt_free(), hmac_finish(), hmac_free(), hmac_init(), mbuf_free(), mdc_finish(), mdc_flush(), mdcbuf_finish(), pad_eme_pkcs1_v15(), parse_literal_data(), parse_symenc_sesskey(), pgp_cfb_free(), pgp_free(), pgp_key_free(), pgp_mpi_free(), pkt_stream_free(), pullf_free(), pullf_read_max(), pushf_free(), px_crypt_md5(), px_gen_salt(), write_prefix(), and write_symenc_sesskey().
const char* px_resolve_alias | ( | const PX_Alias * | list, |
const char * | name | ||
) |
Definition at line 129 of file px.c.
References sort-test::list, name, and pg_strcasecmp().
Referenced by px_find_cipher().
void px_set_debug_handler | ( | void(*)(const char *) | handler | ) |
Definition at line 143 of file px.c.
References debug_handler.
Referenced by decrypt_internal(), encrypt_internal(), and init_work().
const char* px_strerror | ( | int | err | ) |
Definition at line 111 of file px.c.
References error_desc::desc, err(), and px_err_list.
Referenced by find_provider(), pg_decrypt(), pg_decrypt_iv(), pg_encrypt(), pg_encrypt_iv(), pg_gen_salt(), pg_gen_salt_rounds(), and px_THROW_ERROR().
void px_THROW_ERROR | ( | int | err | ) |
Definition at line 93 of file px.c.
References ereport, err(), errcode(), errmsg(), ERROR, px_strerror(), and PXE_NO_RANDOM.
Referenced by decrypt_internal(), encrypt_internal(), init_work(), pg_dearmor(), pg_random_bytes(), pgp_armor_headers(), and pgp_key_id_w().
|
static |
Definition at line 140 of file px.c.
Referenced by px_debug(), and px_set_debug_handler().
|
static |
Definition at line 1 of file px.c.
Referenced by px_strerror().