PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static int | pad_eme_pkcs1_v15 (uint8 *data, int data_len, int res_len, uint8 **res_p) |
static int | create_secmsg (PGP_Context *ctx, PGP_MPI **msg_p, int full_bytes) |
static int | encrypt_and_write_elgamal (PGP_Context *ctx, PGP_PubKey *pk, PushFilter *pkt) |
static int | encrypt_and_write_rsa (PGP_Context *ctx, PGP_PubKey *pk, PushFilter *pkt) |
int | pgp_write_pubenc_sesskey (PGP_Context *ctx, PushFilter *dst) |
|
static |
Definition at line 83 of file pgp-pubenc.c.
References PGP_Context::cipher_algo, i, pad_eme_pkcs1_v15(), palloc(), pfree(), pgp_mpi_create(), px_memset(), res, PGP_Context::sess_key, and PGP_Context::sess_key_len.
Referenced by encrypt_and_write_elgamal(), and encrypt_and_write_rsa().
|
static |
Definition at line 133 of file pgp-pubenc.c.
References create_secmsg(), PGP_PubKey::elg, err(), pgp_elgamal_encrypt(), pgp_mpi_free(), pgp_mpi_write(), PGP_PubKey::pub, and res.
Referenced by pgp_write_pubenc_sesskey().
|
static |
Definition at line 164 of file pgp-pubenc.c.
References create_secmsg(), err(), pgp_mpi_free(), pgp_mpi_write(), pgp_rsa_encrypt(), PGP_PubKey::pub, res, and PGP_PubKey::rsa.
Referenced by pgp_write_pubenc_sesskey().
Definition at line 40 of file pgp-pubenc.c.
References buf, data, palloc(), pfree(), pg_strong_random(), px_memset(), PXE_BUG, and PXE_NO_RANDOM.
Referenced by create_secmsg().
int pgp_write_pubenc_sesskey | ( | PGP_Context * | ctx, |
PushFilter * | dst | ||
) |
Definition at line 190 of file pgp-pubenc.c.
References PGP_PubKey::algo, encrypt_and_write_elgamal(), encrypt_and_write_rsa(), err(), PGP_PubKey::key_id, pgp_create_pkt_writer(), PGP_PKT_PUBENCRYPTED_SESSKEY, PGP_PUB_ELG_ENCRYPT, PGP_PUB_RSA_ENCRYPT, PGP_PUB_RSA_ENCRYPT_SIGN, PGP_Context::pub_key, pushf_flush(), pushf_free(), pushf_write(), px_debug(), PXE_BUG, and res.
Referenced by pgp_encrypt().