Botan
3.14.1
Crypto and TLS for C&
src
lib
entropy
rdseed
rdseed.h
Go to the documentation of this file.
1
/*
2
* Entropy Source Using Intel's rdseed instruction
3
* (C) 2015 Jack Lloyd, Daniel Neus
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_ENTROPY_SRC_RDSEED_H_
9
#define BOTAN_ENTROPY_SRC_RDSEED_H_
10
11
#include <botan/entropy_src.h>
12
13
namespace
Botan
{
14
15
/**
16
* Entropy source using the rdseed instruction first introduced on
17
* Intel's Broadwell architecture.
18
*/
19
class
Intel_Rdseed
final :
public
Entropy_Source
{
20
public
:
21
std::string
name
()
const override
{
return
"rdseed"
; }
22
23
void
gather
(
Entropy_Accumulator
& acc)
override
;
24
};
25
26
}
// namespace Botan
27
28
#endif
Botan::Entropy_Accumulator
Definition
entropy_src.h:33
Botan::Entropy_Source::Entropy_Source
Entropy_Source()=default
Botan::Intel_Rdseed
Definition
rdseed.h:19
Botan::Intel_Rdseed::gather
void gather(Entropy_Accumulator &acc) override
Definition
rdseed.cpp:67
Botan::Intel_Rdseed::name
std::string name() const override
Definition
rdseed.h:21
Botan
Definition
alg_id.cpp:14
Generated by
1.16.1