summaryrefslogtreecommitdiff
path: root/bignum.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2010-04-09 15:48:14 +0200
committerNiels Möller <nisse@lysator.liu.se>2010-04-09 15:48:14 +0200
commit1eb582ebafca1e2b351e6ae2799a97a9c005da75 (patch)
tree85a6e57c96980bb379960704125feff400db509c /bignum.h
parent92d1578458309dda3f7b139a5b60fc448f55b6d2 (diff)
downloadnettle-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bignum.h b/bignum.h
index 14d0fc62..759e7618 100644
--- a/bignum.h
+++ b/bignum.h
@@ -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;