mpi: New internal function _gcry_mpi_cmpabs.
authorWerner Koch <wk@gnupg.org>
Tue, 5 Jun 2018 12:29:53 +0000 (14:29 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 5 Jun 2018 12:29:53 +0000 (14:29 +0200)
commit6606ae44e0de1069b29dd4215ee9748280940e1b
treef9e87594b36d7f1c1bc339ce15a4b763e9688b7c
parent61dbb7c08ab11c10060e193b52e3e1d2ec6dd062
mpi: New internal function _gcry_mpi_cmpabs.

* mpi/mpi-cmp.c (_gcry_mpi_cmp): Factor out to ...
(do_mpi_cmp): New.  Add arg absmode.
(_gcry_mpi_cmpabs): New.
* src/gcrypt-int.h (mpi_cmpabs): New macro.

Signed-off-by: Werner Koch <wk@gnupg.org>
mpi/mpi-cmp.c
src/gcrypt-int.h