Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes:
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> --- bignum.c | 35 +++++++++++++++++++++++++++++++++++ bignum.h | 17 +++++++++++++++++ testsuite/bignum-test.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+)
Hmm, I'm not sure we should add more gmp wrappers to bignum.[hc]. The code dates back to before Nettle was split out of LSH, as can be seen in the _s functions which do formatting according to the ssh binary format. We also have some related functions in gmp-glue.c (for internal use only), mpn_set_base256_le mpn_get_base256_le but those work with the mpn layer, which lacks the general export/import functions. What use for these functions do you have in mind? Application use, or some code you'd like to add to Nettle? Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance.