summaryrefslogtreecommitdiff
path: root/lib/mpi.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2016-11-29 05:28:17 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-06-23 12:20:15 +0300
commitc77aa89206d633aa8218e245babb98ac195281e2 (patch)
tree4be34034bb21e5e108d07af0647929f250082364 /lib/mpi.h
parent05cd755fa46b0dfaa7aab9aa64627e41129fb7f7 (diff)
downloadgnutls-c77aa89206d633aa8218e245babb98ac195281e2.tar.gz
Add support for I/O of little-endian MPI
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/mpi.h')
-rw-r--r--lib/mpi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mpi.h b/lib/mpi.h
index af3e37b775..2715c2ddc1 100644
--- a/lib/mpi.h
+++ b/lib/mpi.h
@@ -57,8 +57,10 @@ bigint_t _gnutls_mpi_random_modp(bigint_t, bigint_t p,
#define _gnutls_prime_check _gnutls_mpi_ops.bigint_prime_check
#define _gnutls_mpi_print(x,y,z) _gnutls_mpi_ops.bigint_print(x,y,z,GNUTLS_MPI_FORMAT_USG)
#define _gnutls_mpi_print_lz(x,y,z) _gnutls_mpi_ops.bigint_print(x,y,z,GNUTLS_MPI_FORMAT_STD)
+#define _gnutls_mpi_print_le(x,y,z) _gnutls_mpi_ops.bigint_print(x,y,z,GNUTLS_MPI_FORMAT_ULE)
#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_le(r, b, s) _gnutls_mpi_ops.bigint_scan(r, b, s, GNUTLS_MPI_FORMAT_ULE)
inline static
void _gnutls_mpi_release(bigint_t * x)
@@ -74,6 +76,8 @@ int _gnutls_mpi_init_scan(bigint_t * ret_mpi, const void *buffer,
size_t nbytes);
int _gnutls_mpi_init_scan_nz(bigint_t * ret_mpi, const void *buffer,
size_t nbytes);
+int _gnutls_mpi_init_scan_le(bigint_t * ret_mpi, const void *buffer,
+ size_t nbytes);
int _gnutls_mpi_dprint_lz(const bigint_t a, gnutls_datum_t * dest);
int _gnutls_mpi_dprint(const bigint_t a, gnutls_datum_t * dest);