gnutls_mpi.c File Reference

#include <gnutls_int.h>
#include <libtasn1.h>
#include <gnutls_errors.h>
#include <gnutls_num.h>
Include dependency graph for gnutls_mpi.c:

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)

Function Documentation

int MHD__gnutls_x509_read_int ( ASN1_TYPE  node,
const char *  value,
mpi_t ret_mpi 
)

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_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().

Here is the call graph for this function:

Here is the caller graph for this function:

int MHD__gnutls_x509_write_int ( ASN1_TYPE  node,
const char *  value,
mpi_t  mpi,
int  lz 
)

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_assert, MHD_gtls_asn2err(), MHD_gtls_mpi_print(), and MHD_gtls_mpi_print_lz().

Referenced by MHD__gnutls_x509_write_rsa_params().

Here is the call graph for this function:

Here is the caller graph for this function:

int MHD_gtls_mpi_dprint ( MHD_gnutls_datum_t dest,
const mpi_t  a 
)
int MHD_gtls_mpi_dprint_lz ( MHD_gnutls_datum_t dest,
const mpi_t  a 
)
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 
) [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().

Here is the caller graph for this function:

void MHD_gtls_mpi_release ( mpi_t x  ) 
int MHD_gtls_mpi_scan ( mpi_t ret_mpi,
const opaque buffer,
size_t *  nbytes 
)

Definition at line 49 of file gnutls_mpi.c.

References GNUTLS_E_MPI_SCAN_FAILED.

Referenced by MHD__gnutls_x509_read_int().

Here is the caller graph for this function:

int MHD_gtls_mpi_scan_nz ( mpi_t ret_mpi,
const opaque buffer,
size_t *  nbytes 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  doxygen 1.6.2-20100208