7#ifndef BOTAN_PRIMALITY_TEST_H_
8#define BOTAN_PRIMALITY_TEST_H_
10#include <botan/types.h>
18class Montgomery_Params;
19class RandomNumberGenerator;
80 const Modular_Reducer& mod_n,
81 const std::shared_ptr<Montgomery_Params>& monty_n,
95 const Modular_Reducer& mod_n,
96 RandomNumberGenerator& rng,
109 RandomNumberGenerator& rng, BigInt& p_out, BigInt& q_out,
size_t pbits,
size_t qbits);
128 const std::vector<uint8_t>& seed,
bool passes_miller_rabin_test(const BigInt &n, const Modular_Reducer &mod_n, const std::shared_ptr< Montgomery_Params > &monty_n, const BigInt &a)
bool is_miller_rabin_probable_prime(const BigInt &n, const Modular_Reducer &mod_n, RandomNumberGenerator &rng, size_t test_iterations)
bool generate_dsa_primes(RandomNumberGenerator &rng, BigInt &p, BigInt &q, size_t pbits, size_t qbits, const std::vector< uint8_t > &seed_c, size_t offset)
bool is_bailie_psw_probable_prime(const BigInt &n, const Modular_Reducer &mod_n)
size_t miller_rabin_test_iterations(size_t n_bits, size_t prob, bool random)
bool is_lucas_probable_prime(const BigInt &C, const Modular_Reducer &mod_C)