gnutls_mpi.h File Reference

#include <gnutls_int.h>
#include <gcrypt.h>
#include "gc.h"

Include dependency graph for gnutls_mpi.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MHD__gnutls_mpi_cmp   gcry_mpi_cmp
#define MHD__gnutls_mpi_cmp_ui   gcry_mpi_cmp_ui
#define MHD__gnutls_mpi_new   gcry_mpi_new
#define MHD__gnutls_mpi_snew   gcry_mpi_snew
#define MHD__gnutls_mpi_copy   gcry_mpi_copy
#define MHD__gnutls_mpi_randomize   gcry_mpi_randomize
#define MHD__gnutls_mpi_get_nbits   gcry_mpi_get_nbits
#define MHD__gnutls_mpi_powm   gcry_mpi_powm
#define MHD__gnutls_mpi_invm   gcry_mpi_invm
#define MHD__gnutls_mpi_alloc_like(x)   MHD__gnutls_mpi_new(MHD__gnutls_mpi_get_nbits(x))

Typedefs

typedef gcry_mpi_t mpi_t

Functions

void MHD_gtls_mpi_release (mpi_t *x)
int MHD_gtls_mpi_scan_nz (mpi_t *ret_mpi, const opaque *buffer, size_t *nbytes)
int MHD_gtls_mpi_scan (mpi_t *ret_mpi, const opaque *buffer, size_t *nbytes)
int MHD_gtls_mpi_print (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)


Define Documentation

#define MHD__gnutls_mpi_alloc_like (  )     MHD__gnutls_mpi_new(MHD__gnutls_mpi_get_nbits(x))

Definition at line 43 of file gnutls_mpi.h.

Referenced by MHD_gtls_calc_dh_key(), and MHD_gtls_calc_dh_secret().

#define MHD__gnutls_mpi_cmp   gcry_mpi_cmp

Definition at line 34 of file gnutls_mpi.h.

#define MHD__gnutls_mpi_cmp_ui   gcry_mpi_cmp_ui

Definition at line 35 of file gnutls_mpi.h.

Referenced by MHD_gtls_calc_dh_secret().

#define MHD__gnutls_mpi_copy   gcry_mpi_copy

#define MHD__gnutls_mpi_get_nbits   gcry_mpi_get_nbits

#define MHD__gnutls_mpi_invm   gcry_mpi_invm

Definition at line 42 of file gnutls_mpi.h.

Referenced by MHD__gnutls_privkey_decode_pkcs1_rsa_key().

#define MHD__gnutls_mpi_new   gcry_mpi_new

Definition at line 36 of file gnutls_mpi.h.

Referenced by MHD_gtls_calc_dh_secret().

#define MHD__gnutls_mpi_powm   gcry_mpi_powm

Definition at line 41 of file gnutls_mpi.h.

Referenced by MHD_gtls_calc_dh_key(), and MHD_gtls_calc_dh_secret().

#define MHD__gnutls_mpi_randomize   gcry_mpi_randomize

Definition at line 39 of file gnutls_mpi.h.

Referenced by MHD_gtls_calc_dh_secret().

#define MHD__gnutls_mpi_snew   gcry_mpi_snew

Definition at line 37 of file gnutls_mpi.h.

Referenced by MHD__gnutls_privkey_decode_pkcs1_rsa_key().


Typedef Documentation

typedef gcry_mpi_t mpi_t

Definition at line 32 of file gnutls_mpi.h.


Function Documentation

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 
)

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 on Fri Feb 27 18:33:38 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1