PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static BIGNUM * | mpi_to_bn (PGP_MPI *n) |
static PGP_MPI * | bn_to_mpi (BIGNUM *bn) |
static int | decide_k_bits (int p_bits) |
int | pgp_elgamal_encrypt (PGP_PubKey *pk, PGP_MPI *_m, PGP_MPI **c1_p, PGP_MPI **c2_p) |
int | pgp_elgamal_decrypt (PGP_PubKey *pk, PGP_MPI *_c1, PGP_MPI *_c2, PGP_MPI **msg_p) |
int | pgp_rsa_encrypt (PGP_PubKey *pk, PGP_MPI *_m, PGP_MPI **c_p) |
int | pgp_rsa_decrypt (PGP_PubKey *pk, PGP_MPI *_c, PGP_MPI **m_p) |
|
static |
Definition at line 56 of file pgp-mpi-openssl.c.
References PGP_MPI::bytes, PGP_MPI::data, pgp_mpi_alloc(), pgp_mpi_free(), px_debug(), and res.
Referenced by pgp_elgamal_decrypt(), pgp_elgamal_encrypt(), pgp_rsa_decrypt(), and pgp_rsa_encrypt().
|
static |
|
static |
Definition at line 39 of file pgp-mpi-openssl.c.
References PGP_MPI::bits, PGP_MPI::bytes, PGP_MPI::data, and px_debug().
Referenced by pgp_elgamal_decrypt(), pgp_elgamal_encrypt(), pgp_rsa_decrypt(), and pgp_rsa_encrypt().
int pgp_elgamal_decrypt | ( | PGP_PubKey * | pk, |
PGP_MPI * | _c1, | ||
PGP_MPI * | _c2, | ||
PGP_MPI ** | msg_p | ||
) |
Definition at line 164 of file pgp-mpi-openssl.c.
References bn_to_mpi(), PGP_PubKey::elg, err(), mpi_to_bn(), PGP_PubKey::pub, PXE_PGP_MATH_FAILED, res, PGP_PubKey::sec, and x.
Referenced by decrypt_elgamal().
int pgp_elgamal_encrypt | ( | PGP_PubKey * | pk, |
PGP_MPI * | _m, | ||
PGP_MPI ** | c1_p, | ||
PGP_MPI ** | c2_p | ||
) |
Definition at line 101 of file pgp-mpi-openssl.c.
References bn_to_mpi(), decide_k_bits(), PGP_PubKey::elg, err(), mpi_to_bn(), PGP_PubKey::pub, PXE_PGP_MATH_FAILED, res, and y.
Referenced by encrypt_and_write_elgamal().
int pgp_rsa_decrypt | ( | PGP_PubKey * | pk, |
PGP_MPI * | _c, | ||
PGP_MPI ** | m_p | ||
) |
Definition at line 251 of file pgp-mpi-openssl.c.
References bn_to_mpi(), err(), mpi_to_bn(), PGP_PubKey::pub, PXE_PGP_MATH_FAILED, res, PGP_PubKey::rsa, and PGP_PubKey::sec.
Referenced by decrypt_rsa().
int pgp_rsa_encrypt | ( | PGP_PubKey * | pk, |
PGP_MPI * | _m, | ||
PGP_MPI ** | c_p | ||
) |
Definition at line 215 of file pgp-mpi-openssl.c.
References bn_to_mpi(), err(), mpi_to_bn(), PGP_PubKey::pub, PXE_PGP_MATH_FAILED, res, and PGP_PubKey::rsa.
Referenced by encrypt_and_write_rsa().