summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJohn M. Schanck <jschanck@mozilla.com>2022-03-22 12:57:53 -0700
committerJohn M. Schanck <jschanck@mozilla.com>2022-03-22 12:57:53 -0700
commite9e66aeb2e433a0113378413bd57419ad7158988 (patch)
tree94c11fd002851548be46874b02dd80b1f8ba2f63 /cmd
parentd989ef5a6e70f54227abe5e5ea7a1efaa5c008fe (diff)
downloadnss-hg-e9e66aeb2e433a0113378413bd57419ad7158988.tar.gz
Backed out changeset 6c1092f5203f
Caused Windows gyp build failures for cmd/mpitests
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mpitests/mpi-test.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/cmd/mpitests/mpi-test.c b/cmd/mpitests/mpi-test.c
index 80c0f951a..b7953b6f6 100644
--- a/cmd/mpitests/mpi-test.c
+++ b/cmd/mpitests/mpi-test.c
@@ -17,9 +17,7 @@
#include <limits.h>
#include <time.h>
-#include "blapi.h"
#include "mpi.h"
-#include "secmpi.h"
#include "mpprime.h"
#include "test-info.c"
@@ -2047,32 +2045,31 @@ test_pprime(void)
int err = 0;
mp_err res;
- RNG_RNGInit();
mp_init(&p);
mp_read_radix(&p, mp7, 16);
- if (mpp_pprime_secure(&p, 5) != MP_YES) {
+ if (mpp_pprime(&p, 5) != MP_YES) {
reason("error: %s failed Rabin-Miller test, but is prime\n", mp7);
err = 1;
}
IFOK(mp_set_int(&p, 9));
- res = mpp_pprime_secure(&p, 50);
+ res = mpp_pprime(&p, 50);
if (res == MP_YES) {
reason("error: 9 is composite but passed Rabin-Miller test\n");
err = 1;
} else if (res != MP_NO) {
- reason("test mpp_pprime_secure(9, 50) failed: error %d\n", res);
+ reason("test mpp_pprime(9, 50) failed: error %d\n", res);
err = 1;
}
IFOK(mp_set_int(&p, 15));
- res = mpp_pprime_secure(&p, 50);
+ res = mpp_pprime(&p, 50);
if (res == MP_YES) {
reason("error: 15 is composite but passed Rabin-Miller test\n");
err = 1;
} else if (res != MP_NO) {
- reason("test mpp_pprime_secure(15, 50) failed: error %d\n", res);
+ reason("test mpp_pprime(15, 50) failed: error %d\n", res);
err = 1;
}