summaryrefslogtreecommitdiff
path: root/bignum.h
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.h
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.h')
-rw-r--r--bignum.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/bignum.h b/bignum.h
index d9e06e2e..f1dad7e1 100644
--- a/bignum.h
+++ b/bignum.h
@@ -71,29 +71,29 @@ nettle_mpz_init_set_str_256_u(mpz_t x,
/* Returns a uniformly distributed random number 0 <= x < 2^n */
void
nettle_mpz_random_size(mpz_t x,
- void *ctx, nettle_random_func random,
+ void *ctx, nettle_random_func *random,
unsigned bits);
/* Returns a number x, almost uniformly random in the range
* 0 <= x < n. */
void
nettle_mpz_random(mpz_t x,
- void *ctx, nettle_random_func random,
+ void *ctx, nettle_random_func *random,
const mpz_t n);
void
nettle_next_prime(mpz_t p, mpz_t n, unsigned count, unsigned prime_limit,
- void *progress_ctx, nettle_progress_func progress);
+ void *progress_ctx, nettle_progress_func *progress);
void
nettle_random_prime(mpz_t p, unsigned bits, int top_bits_set,
- void *ctx, nettle_random_func random,
- void *progress_ctx, nettle_progress_func progress);
+ void *ctx, nettle_random_func *random,
+ void *progress_ctx, nettle_progress_func *progress);
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);