Botan 3.6.1
Crypto and TLS for C&
make_prm.cpp File Reference
#include <botan/internal/primality.h>
#include <botan/numthry.h>
#include <botan/reducer.h>
#include <botan/rng.h>
#include <botan/internal/bit_ops.h>
#include <botan/internal/ct_utils.h>
#include <botan/internal/loadstor.h>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  Botan
 

Functions

BigInt Botan::generate_rsa_prime (RandomNumberGenerator &keygen_rng, RandomNumberGenerator &prime_test_rng, size_t bits, const BigInt &coprime, size_t prob)
 
BigInt Botan::random_prime (RandomNumberGenerator &rng, size_t bits, const BigInt &coprime, size_t equiv, size_t modulo, size_t prob)
 
BigInt Botan::random_safe_prime (RandomNumberGenerator &rng, size_t bits)