randomSafePrime

Return a random 'safe' prime, of the form p=2*q+1 with q prime

static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
randomSafePrime

Parameters

rng RandomNumberGenerator

a random number generator

bits size_t

is how long the resulting prime should be

Return Value

Type: BigInt

prime randomly chosen from safe primes of length bits

Meta