#include <gnutls_int.h>
#include <libtasn1.h>
#include <gnutls_errors.h>
#include <gnutls_num.h>
Go to the source code of this file.
Functions | |
void | MHD_gtls_mpi_release (mpi_t *x) |
int | MHD_gtls_mpi_scan (mpi_t *ret_mpi, const opaque *buffer, size_t *nbytes) |
int | MHD_gtls_mpi_scan_nz (mpi_t *ret_mpi, const opaque *buffer, size_t *nbytes) |
int | MHD_gtls_mpi_print (void *buffer, size_t *nbytes, const mpi_t a) |
static int | MHD_gtls_mpi_print_lz (void *buffer, size_t *nbytes, const mpi_t a) |
int | MHD_gtls_mpi_dprint_lz (MHD_gnutls_datum_t *dest, const mpi_t a) |
int | MHD_gtls_mpi_dprint (MHD_gnutls_datum_t *dest, const mpi_t a) |
int | MHD__gnutls_x509_read_int (ASN1_TYPE node, const char *value, mpi_t *ret_mpi) |
int | MHD__gnutls_x509_write_int (ASN1_TYPE node, const char *value, mpi_t mpi, int lz) |
Definition at line 178 of file gnutls_mpi.c.
References ASN1_MEM_ERROR, ASN1_SUCCESS, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_MPI_SCAN_FAILED, MHD__asn1_read_value(), MHD_gnutls_afree, MHD_gnutls_alloca, MHD_gnutls_assert, MHD_gtls_asn2err(), and MHD_gtls_mpi_scan().
Referenced by MHD__gnutls_privkey_decode_pkcs1_rsa_key(), and MHD__gnutls_x509_read_rsa_params().
Definition at line 224 of file gnutls_mpi.c.
References ASN1_SUCCESS, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_MPI_PRINT_FAILED, MHD__asn1_write_value(), MHD_gnutls_afree, MHD_gnutls_alloca, MHD_gnutls_assert, MHD_gtls_asn2err(), MHD_gtls_mpi_print(), and MHD_gtls_mpi_print_lz().
Referenced by MHD__gnutls_x509_write_rsa_params().
int MHD_gtls_mpi_dprint | ( | MHD_gnutls_datum_t * | dest, | |
const mpi_t | a | |||
) |
Definition at line 144 of file gnutls_mpi.c.
References MHD_gnutls_datum_t::data, GNUTLS_E_INVALID_REQUEST, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_MPI_PRINT_FAILED, MHD_gnutls_free, MHD_gnutls_malloc, and MHD_gnutls_datum_t::size.
Referenced by MHD_gtls_gen_dh_common_client_kx(), and MHD_gtls_proc_dh_common_client_kx().
int MHD_gtls_mpi_dprint_lz | ( | MHD_gnutls_datum_t * | dest, | |
const mpi_t | a | |||
) |
Definition at line 115 of file gnutls_mpi.c.
References MHD_gnutls_datum_t::data, GNUTLS_E_INVALID_REQUEST, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_MPI_PRINT_FAILED, MHD_gnutls_free, MHD_gnutls_malloc, and MHD_gnutls_datum_t::size.
Referenced by MHD_gtls_dh_set_group(), MHD_gtls_dh_set_peer_public(), and MHD_gtls_rsa_export_set_pubkey().
int MHD_gtls_mpi_print | ( | void * | buffer, | |
size_t * | nbytes, | |||
const mpi_t | a | |||
) |
Definition at line 83 of file gnutls_mpi.c.
References GNUTLS_E_INVALID_REQUEST, and GNUTLS_E_MPI_PRINT_FAILED.
Referenced by gen_rsa_export_server_kx(), MHD__gnutls_x509_write_int(), MHD_gtls_dh_common_print_server_kx(), MHD_gtls_gen_dh_common_client_kx(), MHD_gtls_pkcs1_rsa_decrypt(), and MHD_gtls_pkcs1_rsa_encrypt().
static int MHD_gtls_mpi_print_lz | ( | void * | buffer, | |
size_t * | nbytes, | |||
const mpi_t | a | |||
) | [static] |
Definition at line 99 of file gnutls_mpi.c.
References GNUTLS_E_INVALID_REQUEST, and GNUTLS_E_MPI_PRINT_FAILED.
Referenced by MHD__gnutls_x509_write_int().
void MHD_gtls_mpi_release | ( | mpi_t * | x | ) |
Definition at line 38 of file gnutls_mpi.c.
Referenced by MHD__gnutls_deinit(), MHD__gnutls_dh_params_deinit(), MHD__gnutls_gen_rsa_client_kx(), MHD__gnutls_privkey_decode_pkcs1_rsa_key(), MHD__gnutls_x509_get_pk_algorithm(), MHD__gnutls_x509_privkey_to_gkey(), MHD__gnutls_x509_read_rsa_params(), MHD_gnutls_x509_privkey_deinit(), MHD_gtls_calc_dh_secret(), MHD_gtls_dh_common_print_server_kx(), MHD_gtls_dh_generate_prime(), MHD_gtls_gcert_deinit(), MHD_gtls_gen_dh_common_client_kx(), MHD_gtls_gkey_deinit(), MHD_gtls_mpi_scan_nz(), MHD_gtls_pkcs1_rsa_decrypt(), MHD_gtls_pkcs1_rsa_encrypt(), and MHD_gtls_proc_dh_common_client_kx().
Definition at line 49 of file gnutls_mpi.c.
References GNUTLS_E_MPI_SCAN_FAILED.
Referenced by MHD__gnutls_x509_read_int().
Definition at line 63 of file gnutls_mpi.c.
References GNUTLS_E_MPI_SCAN_FAILED, MHD__gnutls_mpi_get_nbits, and MHD_gtls_mpi_release().
Referenced by MHD_gtls_pkcs1_rsa_decrypt(), MHD_gtls_pkcs1_rsa_encrypt(), MHD_gtls_proc_dh_common_client_kx(), MHD_gtls_proc_dh_common_server_kx(), and proc_rsa_export_server_kx().