summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-04-25 20:01:00 +0200
committerNiels Möller <nisse@lysator.liu.se>2020-04-25 20:01:00 +0200
commit4489fd6fec38deadf58058c1ca8a16f8c597be95 (patch)
tree9711313211d72219a4dc19597a12c73ee510aa8d /testsuite
parenta865bd1d037860643e99168026fbf2553f345db9 (diff)
downloadnettle-4489fd6fec38deadf58058c1ca8a16f8c597be95.tar.gz
Require gmp-6.1.0 or later, for mpn_zero_p.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/testutils.c13
-rw-r--r--testsuite/testutils.h9
2 files changed, 0 insertions, 22 deletions
diff --git a/testsuite/testutils.c b/testsuite/testutils.c
index 187da0ef..1f279e9a 100644
--- a/testsuite/testutils.c
+++ b/testsuite/testutils.c
@@ -1063,19 +1063,6 @@ test_armor(const struct nettle_armor *armor,
#if WITH_HOGWEED
-#ifndef mpn_zero_p
-int
-mpn_zero_p (mp_srcptr ap, mp_size_t n)
-{
- while (--n >= 0)
- {
- if (ap[n] != 0)
- return 0;
- }
- return 1;
-}
-#endif
-
void
mpn_out_str (FILE *f, int base, const mp_limb_t *xp, mp_size_t xn)
{
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 8ace6a82..0dc235c6 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -164,17 +164,8 @@ void mpz_urandomb (mpz_t r, struct knuth_lfib_ctx *ctx, mp_bitcnt_t bits);
/* This is cheating */
#define mpz_rrandomb mpz_urandomb
-/* mini-gmp defines this function (in the GMP library, it was added in
- gmp in version 6.1.0). */
-#define mpn_zero_p mpn_zero_p
-
#endif /* NETTLE_USE_MINI_GMP */
-#ifndef mpn_zero_p
-int
-mpn_zero_p (mp_srcptr ap, mp_size_t n);
-#endif
-
void
mpn_out_str (FILE *f, int base, const mp_limb_t *xp, mp_size_t xn);