9 #ifndef BOTAN_P11_RNG_H__
10 #define BOTAN_P11_RNG_H__
12 #include <botan/rng.h>
13 #include <botan/p11_session.h>
14 #include <botan/entropy_src.h>
34 std::string
name()
const override
54 return m_session.get().module();
58 void randomize(uint8_t output[], std::size_t length)
override;
61 void add_entropy(
const uint8_t in[], std::size_t length)
override;
64 const std::reference_wrapper<Session> m_session;
size_t reseed(Entropy_Sources &, size_t, std::chrono::milliseconds) override
No operation - always returns 0.
A random generator that only fetches random from the PKCS#11 RNG.
std::string name() const override
Represents a PKCS#11 session.
bool is_seeded() const override
Always returns true.