9#ifndef BOTAN_P11_RNG_H_
10#define BOTAN_P11_RNG_H_
13#include <botan/p11_types.h>
14#include <botan/entropy_src.h>
31 std::string
name()
const override
51 return m_session.get().module();
55 void randomize(uint8_t output[], std::size_t length)
override;
58 void add_entropy(
const uint8_t in[], std::size_t length)
override;
64 const std::reference_wrapper<Session> m_session;
A random generator that only fetches random from the PKCS#11 RNG.
bool accepts_input() const override
std::string name() const override
size_t reseed(Entropy_Sources &, size_t, std::chrono::milliseconds) override
No operation - always returns 0.
bool is_seeded() const override
Always returns true.
Represents a PKCS#11 session.
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)