summaryrefslogtreecommitdiff
path: root/bignum-random-prime.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-06-25 22:35:51 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-06-25 22:35:51 +0200
commitba98962d5fb20ff238c5c77fa0206264b8c0bd64 (patch)
tree7417f564feaebf44ac0594df27ca2bf66cbbd385 /bignum-random-prime.c
parent0cc9526c98860e8edf6811e62a8134fffdc860d6 (diff)
downloadnettle-ba98962d5fb20ff238c5c77fa0206264b8c0bd64.tar.gz
Consistently use foo_func *f (rather than foo_func f) for declaring function pointer arguments.
Diffstat (limited to 'bignum-random-prime.c')
-rw-r--r--bignum-random-prime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bignum-random-prime.c b/bignum-random-prime.c
index e0454a88..f172d6d8 100644
--- a/bignum-random-prime.c
+++ b/bignum-random-prime.c
@@ -260,7 +260,7 @@ miller_rabin_pocklington(mpz_t n, mpz_t nm1, mpz_t nm1dq, mpz_t a)
void
_nettle_generate_pocklington_prime (mpz_t p, mpz_t r,
unsigned bits, int top_bits_set,
- void *ctx, nettle_random_func random,
+ void *ctx, nettle_random_func *random,
const mpz_t p0,
const mpz_t q,
const mpz_t p0q)
@@ -345,8 +345,8 @@ _nettle_generate_pocklington_prime (mpz_t p, mpz_t r,
the variant in fips186-3). */
void
nettle_random_prime(mpz_t p, unsigned bits, int top_bits_set,
- void *random_ctx, nettle_random_func random,
- void *progress_ctx, nettle_progress_func progress)
+ void *random_ctx, nettle_random_func *random,
+ void *progress_ctx, nettle_progress_func *progress)
{
assert (bits >= 3);
if (bits <= 10)