Hello,

вс, 17 июн. 2018 г. в 20:47, Niels Möller <[email protected]>:
>
> Dmitry Eremin-Solenikov <[email protected]> writes:
>
> > Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
> > ---
> >  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?

Unfortunately Russian crypto standards prefer to use LE representation
for MPIs, so I'd like to use native Nettle functions to import/export LE
values (to make GnuTLS code more or less symmetrical). Basically I'm
using those functions through GnuTLS'es lib/nettle/mpi.c wrappers.

-- 
With best wishes
Dmitry
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to