Go to the source code of this file.
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(), PGP_Context::sess_key, and PGP_Context::sess_key_len.
Referenced by encrypt_and_write_elgamal(), and encrypt_and_write_rsa().
Definition at line 133 of file pgp-pubenc.c.
References PGP_MPI::bytes, create_secmsg(), PGP_PubKey::elg, err(), PGP_PubKey::p, pgp_elgamal_encrypt(), pgp_mpi_free(), pgp_mpi_write(), and PGP_PubKey::pub.
Referenced by pgp_write_pubenc_sesskey().
Definition at line 164 of file pgp-pubenc.c.
References PGP_MPI::bytes, create_secmsg(), err(), PGP_PubKey::n, pgp_mpi_free(), pgp_mpi_write(), pgp_rsa_encrypt(), PGP_PubKey::pub, 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().
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(), and PXE_BUG.
Referenced by pgp_encrypt().