diff options
author | Niels Möller <nisse@lysator.liu.se> | 2010-04-09 15:48:14 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2010-04-09 15:48:14 +0200 |
commit | 1eb582ebafca1e2b351e6ae2799a97a9c005da75 (patch) | |
tree | 85a6e57c96980bb379960704125feff400db509c /bignum.h | |
parent | 92d1578458309dda3f7b139a5b60fc448f55b6d2 (diff) | |
download | nettle-1eb582ebafca1e2b351e6ae2799a97a9c005da75.tar.gz |
* Makefile.in (hogweed_SOURCES): Added bignum-random-prime.c.
* bignum-random-prime.c (nettle_random_prime): New file, new
function.
Rev: nettle/ChangeLog:1.75
Rev: nettle/Makefile.in:1.23
Rev: nettle/bignum-random-prime.c:1.1
Rev: nettle/bignum.h:1.4
Diffstat (limited to 'bignum.h')
-rw-r--r-- | bignum.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -85,6 +85,10 @@ void nettle_next_prime(mpz_t p, mpz_t n, unsigned count, unsigned prime_limit, void *progress_ctx, nettle_progress_func progress); +void +nettle_random_prime(mpz_t p, unsigned bits, + void *ctx, nettle_random_func random); + /* sexp parsing */ struct sexp_iterator; |