9#include <botan/p11_randomgenerator.h>
bool C_GenerateRandom(SessionHandle session, Byte *random_data_ptr, Ulong random_len, ReturnValue *return_value=ThrowException) const
bool C_SeedRandom(SessionHandle session, Byte *seed_ptr, Ulong seed_len, ReturnValue *return_value=ThrowException) const
void randomize(uint8_t output[], std::size_t length) override
Calls C_GenerateRandom to generate random data.
PKCS11_RNG(Session &session)
Initialize the RNG with the PKCS#11 session that provides access to the cryptoki functions.
void add_entropy(const uint8_t in[], std::size_t length) override
Calls C_SeedRandom to add entropy to the random generation function of the token/middleware.
Represents a PKCS#11 session.