|
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, fb(), i, pad_eme_pkcs1_v15(), palloc(), pfree(), pgp_mpi_create(), px_memset(), 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 PGP_MPI::bytes, create_secmsg(), err(), fb(), pgp_elgamal_encrypt(), pgp_mpi_free(), and pgp_mpi_write().
Referenced by pgp_write_pubenc_sesskey().
|
static |
Definition at line 164 of file pgp-pubenc.c.
References PGP_MPI::bytes, create_secmsg(), err(), fb(), pgp_mpi_free(), pgp_mpi_write(), and pgp_rsa_encrypt().
Referenced by pgp_write_pubenc_sesskey().
Definition at line 40 of file pgp-pubenc.c.
References buf, data, fb(), 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 encrypt_and_write_elgamal(), encrypt_and_write_rsa(), err(), fb(), 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(), and PXE_BUG.
Referenced by pgp_encrypt().