gnutls_mpi.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
00003  *
00004  * Author: Nikos Mavrogiannopoulos
00005  *
00006  * This file is part of GNUTLS.
00007  *
00008  * The GNUTLS library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021  * USA
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

Generated on Fri Feb 27 18:31:22 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1