Home GnuPG

cipher,mpi: Expose some MPI helper functions by mpi.h.

Description

cipher,mpi: Expose some MPI helper functions by mpi.h.

* cipher/dsa-common.c: Don't include mpi-internal.h.
* mpi/mpi-inline.h (_gcry_mpih_add_lli): Move this to ...
* src/mpi.h (_gcry_mpih_add_lli): ... here.
(_gcry_mpih_rshift, _gcry_mpih_add_n_cond): Add.
(_gcry_mpih_cmp_ui, _gcry_mpih_cmp_lli): Add.
(_gcry_mpih_add_n): Add.
* mpi/mpi-internal.h (_gcry_mpih_cmp_ui, _gcry_mpih_cmp_lli): Remove.

Those MPI helper functions are intended to be used directly.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Thu, Feb 20, 6:21 AM
Parents
rC58aca75a295d: mpi: Add a comment on _gcry_mpih_lookup_lli.
Branches
Unknown
Tags
Unknown
References
HEAD -> master