PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static uint8 * | check_eme_pkcs1_v15 (uint8 *data, int len) |
static int | control_cksum (uint8 *msg, int msglen) |
static int | decrypt_elgamal (PGP_PubKey *pk, PullFilter *pkt, PGP_MPI **m_p) |
static int | decrypt_rsa (PGP_PubKey *pk, PullFilter *pkt, PGP_MPI **m_p) |
int | pgp_parse_pubenc_sesskey (PGP_Context *ctx, PullFilter *pkt) |
Variables | |
static const uint8 | any_key [] = {0, 0, 0, 0, 0, 0, 0, 0} |
|
static |
Definition at line 74 of file pgp-pubdec.c.
References i, px_debug(), and PXE_PGP_WRONG_KEY.
Referenced by pgp_parse_pubenc_sesskey().
|
static |
Definition at line 97 of file pgp-pubdec.c.
References PGP_PubKey::algo, pgp_elgamal_decrypt(), pgp_mpi_free(), pgp_mpi_read(), PGP_PUB_ELG_ENCRYPT, PXE_PGP_WRONG_KEY, and res.
Referenced by pgp_parse_pubenc_sesskey().
|
static |
Definition at line 124 of file pgp-pubdec.c.
References PGP_PubKey::algo, pgp_mpi_free(), pgp_mpi_read(), PGP_PUB_RSA_ENCRYPT, PGP_PUB_RSA_ENCRYPT_SIGN, pgp_rsa_decrypt(), PXE_PGP_WRONG_KEY, and res.
Referenced by pgp_parse_pubenc_sesskey().
int pgp_parse_pubenc_sesskey | ( | PGP_Context * | ctx, |
PullFilter * | pkt | ||
) |
Definition at line 150 of file pgp-pubdec.c.
References any_key, PGP_MPI::bytes, check_eme_pkcs1_v15(), PGP_Context::cipher_algo, control_cksum(), PGP_MPI::data, decrypt_elgamal(), decrypt_rsa(), GETBYTE, PGP_PubKey::key_id, pgp_expect_packet_end(), pgp_mpi_free(), PGP_PUB_ELG_ENCRYPT, PGP_PUB_RSA_ENCRYPT, PGP_PUB_RSA_ENCRYPT_SIGN, PGP_Context::pub_key, pullf_read_fixed(), px_debug(), PXE_BUG, PXE_PGP_CORRUPT_DATA, PXE_PGP_UNKNOWN_PUBALGO, PXE_PGP_WRONG_KEY, res, PGP_Context::sess_key, and PGP_Context::sess_key_len.
Referenced by pgp_decrypt().
|
static |
Definition at line 147 of file pgp-pubdec.c.
Referenced by pgp_parse_pubenc_sesskey().