diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-01-26 10:28:31 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-01-26 10:28:31 +0100 |
commit | 83100dcd7591fc7b5503c25f7bb6fe04ee4b5450 (patch) | |
tree | 686c7730aa1651d123950e809443f8659807a10b /lib/gnutls_mpi.h | |
parent | ea2afc5723133ab710b657e848b6481747620e97 (diff) | |
download | gnutls-83100dcd7591fc7b5503c25f7bb6fe04ee4b5450.tar.gz |
updated mpi_scan macros
Diffstat (limited to 'lib/gnutls_mpi.h')
-rw-r--r-- | lib/gnutls_mpi.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/gnutls_mpi.h b/lib/gnutls_mpi.h index 63b2581d40..23eee6637f 100644 --- a/lib/gnutls_mpi.h +++ b/lib/gnutls_mpi.h @@ -59,6 +59,8 @@ bigint_t _gnutls_mpi_random_modp(bigint_t, bigint_t p, #define _gnutls_mpi_print_lz(x,y,z) _gnutls_mpi_ops.bigint_print(x,y,z,GNUTLS_MPI_FORMAT_STD) #define _gnutls_mpi_print_pgp(x,y,z) _gnutls_mpi_ops.bigint_print(x,y,z,GNUTLS_MPI_FORMAT_PGP) #define _gnutls_mpi_copy _gnutls_mpi_ops.bigint_copy +#define _gnutls_mpi_scan(r, b, s) _gnutls_mpi_ops.bigint_scan(r, b, s, GNUTLS_MPI_FORMAT_USG) +#define _gnutls_mpi_scan_pgp(r, b, s) _gnutls_mpi_ops.bigint_scan(r, b, s, GNUTLS_MPI_FORMAT_PGP) inline static void _gnutls_mpi_release(bigint_t * x) @@ -70,11 +72,11 @@ void _gnutls_mpi_release(bigint_t * x) *x = NULL; } -int _gnutls_mpi_scan(bigint_t * ret_mpi, const void *buffer, +int _gnutls_mpi_init_scan(bigint_t * ret_mpi, const void *buffer, size_t nbytes); -int _gnutls_mpi_scan_nz(bigint_t * ret_mpi, const void *buffer, +int _gnutls_mpi_init_scan_nz(bigint_t * ret_mpi, const void *buffer, size_t nbytes); -int _gnutls_mpi_scan_pgp(bigint_t * ret_mpi, const void *buffer, +int _gnutls_mpi_init_scan_pgp(bigint_t * ret_mpi, const void *buffer, size_t nbytes); int _gnutls_mpi_dprint_lz(const bigint_t a, gnutls_datum_t * dest); |