PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
int | pgp_mpi_alloc (int bits, PGP_MPI **mpi) |
int | pgp_mpi_create (uint8 *data, int bits, PGP_MPI **mpi) |
int | pgp_mpi_free (PGP_MPI *mpi) |
int | pgp_mpi_read (PullFilter *src, PGP_MPI **mpi) |
int | pgp_mpi_write (PushFilter *dst, PGP_MPI *n) |
int | pgp_mpi_hash (PX_MD *md, PGP_MPI *n) |
unsigned | pgp_mpi_cksum (unsigned cksum, PGP_MPI *n) |
int pgp_mpi_alloc | ( | int | bits, |
PGP_MPI ** | mpi | ||
) |
Definition at line 37 of file pgp-mpi.c.
References PGP_MPI::bits, PGP_MPI::bytes, PGP_MPI::data, len, palloc(), px_debug(), and PXE_PGP_CORRUPT_DATA.
Referenced by bn_to_mpi(), pgp_mpi_create(), and pgp_mpi_read().
unsigned pgp_mpi_cksum | ( | unsigned | cksum, |
PGP_MPI * | n | ||
) |
Definition at line 132 of file pgp-mpi.c.
References PGP_MPI::bits, PGP_MPI::bytes, PGP_MPI::data, and i.
Referenced by check_key_cksum().
Definition at line 56 of file pgp-mpi.c.
References PGP_MPI::bytes, PGP_MPI::data, data, pgp_mpi_alloc(), and res.
Referenced by create_secmsg().
int pgp_mpi_free | ( | PGP_MPI * | mpi | ) |
Definition at line 70 of file pgp-mpi.c.
References PGP_MPI::bytes, pfree(), and px_memset().
Referenced by bn_to_mpi(), decrypt_elgamal(), decrypt_rsa(), encrypt_and_write_elgamal(), encrypt_and_write_rsa(), pgp_key_free(), pgp_mpi_read(), and pgp_parse_pubenc_sesskey().
Definition at line 119 of file pgp-mpi.c.
References PGP_MPI::bits, buf, PGP_MPI::bytes, PGP_MPI::data, and px_md_update.
Referenced by calc_key_id(), and check_key_sha1().
int pgp_mpi_read | ( | PullFilter * | src, |
PGP_MPI ** | mpi | ||
) |
Definition at line 80 of file pgp-mpi.c.
References PGP_MPI::bytes, PGP_MPI::data, pgp_mpi_alloc(), pgp_mpi_free(), pullf_read_fixed(), and res.
Referenced by _pgp_read_public_key(), decrypt_elgamal(), decrypt_rsa(), and process_secret_key().
int pgp_mpi_write | ( | PushFilter * | dst, |
PGP_MPI * | n | ||
) |
Definition at line 105 of file pgp-mpi.c.
References PGP_MPI::bits, buf, PGP_MPI::bytes, PGP_MPI::data, pushf_write(), and res.
Referenced by encrypt_and_write_elgamal(), and encrypt_and_write_rsa().