diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2016-11-29 05:28:17 +0300 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2018-06-23 12:20:15 +0300 |
commit | c77aa89206d633aa8218e245babb98ac195281e2 (patch) | |
tree | 4be34034bb21e5e108d07af0647929f250082364 /lib/mpi.h | |
parent | 05cd755fa46b0dfaa7aab9aa64627e41129fb7f7 (diff) | |
download | gnutls-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |