8#ifndef BOTAN_CHACHA_RNG_H_
9#define BOTAN_CHACHA_RNG_H_
12#include <botan/stateful_rng.h>
13#include <botan/stream_cipher.h>
102 std::string
name()
const override {
return "ChaCha_RNG"; }
104 size_t security_level()
const override;
109 void update(std::span<const uint8_t> input)
override;
111 void generate_output(std::span<uint8_t> output, std::span<const uint8_t> input)
override;
113 void clear_state()
override;
115 std::unique_ptr<MessageAuthenticationCode> m_hmac;
116 std::unique_ptr<StreamCipher> m_chacha;
size_t max_number_of_bytes_per_request() const override
std::string name() const override
int(* update)(CTX *, const void *, CC_LONG len)
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_RNG_DEFAULT_RESEED_INTERVAL