gnutls_mpi.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GNUTLS_MPI_H
00026 #define GNUTLS_MPI_H
00027
00028 # include <gnutls_int.h>
00029 # include <gcrypt.h>
00030 # include "gc.h"
00031
00032 typedef gcry_mpi_t mpi_t;
00033
00034 #define MHD__gnutls_mpi_cmp gcry_mpi_cmp
00035 #define MHD__gnutls_mpi_cmp_ui gcry_mpi_cmp_ui
00036 #define MHD__gnutls_mpi_new gcry_mpi_new
00037 #define MHD__gnutls_mpi_snew gcry_mpi_snew
00038 #define MHD__gnutls_mpi_copy gcry_mpi_copy
00039 #define MHD__gnutls_mpi_randomize gcry_mpi_randomize
00040 #define MHD__gnutls_mpi_get_nbits gcry_mpi_get_nbits
00041 #define MHD__gnutls_mpi_powm gcry_mpi_powm
00042 #define MHD__gnutls_mpi_invm gcry_mpi_invm
00043 #define MHD__gnutls_mpi_alloc_like(x) MHD__gnutls_mpi_new(MHD__gnutls_mpi_get_nbits(x))
00044
00045 void MHD_gtls_mpi_release (mpi_t * x);
00046
00047 int MHD_gtls_mpi_scan_nz (mpi_t * ret_mpi, const opaque * buffer,
00048 size_t * nbytes);
00049 int MHD_gtls_mpi_scan (mpi_t * ret_mpi, const opaque * buffer,
00050 size_t * nbytes);
00051 int MHD_gtls_mpi_print (void *buffer, size_t * nbytes, const mpi_t a);
00052 int MHD_gtls_mpi_dprint_lz (MHD_gnutls_datum_t * dest, const mpi_t a);
00053 int MHD_gtls_mpi_dprint (MHD_gnutls_datum_t * dest, const mpi_t a);
00054
00055 #endif