summaryrefslogtreecommitdiff
path: root/testsuite/rsa-compute-root-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/rsa-compute-root-test.c')
-rw-r--r--testsuite/rsa-compute-root-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/rsa-compute-root-test.c b/testsuite/rsa-compute-root-test.c
index 9e3cb7f8..e7bdb1f8 100644
--- a/testsuite/rsa-compute-root-test.c
+++ b/testsuite/rsa-compute-root-test.c
@@ -37,11 +37,11 @@ test_one (gmp_randstate_t *rands, struct rsa_public_key *pub,
if (mpz_cmp (plaintext, decrypted)) {
fprintf (stderr, "rsa_compute_root_tr failed\n");
- fprintf(stderr, "Public key: size=%lu\n n:", pub->size);
+ fprintf(stderr, "Public key: size=%u\n n:", (unsigned) pub->size);
mpz_out_str (stderr, 10, pub->n);
fprintf(stderr, "\n e:");
mpz_out_str (stderr, 10, pub->e);
- fprintf(stderr, "\nPrivate key: size=%lu\n p:", key->size);
+ fprintf(stderr, "\nPrivate key: size=%u\n p:", (unsigned) key->size);
mpz_out_str (stderr, 10, key->p);
fprintf(stderr, "\n q:");
mpz_out_str (stderr, 10, key->q);
@@ -55,13 +55,13 @@ test_one (gmp_randstate_t *rands, struct rsa_public_key *pub,
mpz_out_str (stderr, 10, key->d);
fprintf(stderr, "\n");
- fprintf (stderr, "plaintext(%lu) = ", mpz_sizeinbase (plaintext, 2));
+ fprintf (stderr, "plaintext(%u) = ", (unsigned) mpz_sizeinbase (plaintext, 2));
mpz_out_str (stderr, 10, plaintext);
fprintf (stderr, "\n");
- fprintf (stderr, "ciphertext(%lu) = ", mpz_sizeinbase (ciphertext, 2));
+ fprintf (stderr, "ciphertext(%u) = ", (unsigned) mpz_sizeinbase (ciphertext, 2));
mpz_out_str (stderr, 10, ciphertext);
fprintf (stderr, "\n");
- fprintf (stderr, "decrypted(%lu) = ", mpz_sizeinbase (decrypted, 2));
+ fprintf (stderr, "decrypted(%u) = ", (unsigned) mpz_sizeinbase (decrypted, 2));
mpz_out_str (stderr, 10, decrypted);
fprintf (stderr, "\n");
abort();