Botan 3.0.0
Crypto and TLS for C&
Namespaces | Functions
primality.h File Reference

Internal Header. More...

#include <botan/types.h>
#include <memory>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Botan
 

Functions

std::vector< uint8_t > Botan::generate_dsa_primes (RandomNumberGenerator &rng, BigInt &p, BigInt &q, size_t pbits, size_t qbits)
 
bool Botan::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 Botan::is_bailie_psw_probable_prime (const BigInt &n)
 
bool Botan::is_bailie_psw_probable_prime (const BigInt &n, const Modular_Reducer &mod_n)
 
bool Botan::is_lucas_probable_prime (const BigInt &C, const Modular_Reducer &mod_C)
 
bool Botan::is_miller_rabin_probable_prime (const BigInt &n, const Modular_Reducer &mod_n, RandomNumberGenerator &rng, size_t test_iterations)
 
size_t Botan::miller_rabin_test_iterations (size_t n_bits, size_t prob, bool random)
 
bool Botan::passes_miller_rabin_test (const BigInt &n, const Modular_Reducer &mod_n, const std::shared_ptr< Montgomery_Params > &monty_n, const BigInt &a)
 

Detailed Description

Internal Header.

Definition in file primality.h.