CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
entropy.h File Reference
#include "ccf/pal/hardware_info.h"
#include <cassert>
#include <cstdint>
#include <cstring>
#include <memory>
#include <stdexcept>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  ccf::crypto::Entropy
 
class  ccf::crypto::IntelDRNG
 

Namespaces

namespace  ccf
 
namespace  ccf::crypto
 

Macros

#define DRNG_NO_SUPPORT   0x0
 
#define DRNG_HAS_RDRAND   0x1
 
#define DRNG_HAS_RDSEED   0x2
 
#define RDRAND_RETRIES   10
 

Typedefs

using ccf::crypto::rng_func_t = int(*)(void *ctx, unsigned char *output, size_t len)
 
using ccf::crypto::EntropyPtr = std::shared_ptr< Entropy >
 

Functions

EntropyPtr ccf::crypto::get_entropy ()
 

Macro Definition Documentation

◆ DRNG_HAS_RDRAND

#define DRNG_HAS_RDRAND   0x1

◆ DRNG_HAS_RDSEED

#define DRNG_HAS_RDSEED   0x2

◆ DRNG_NO_SUPPORT

#define DRNG_NO_SUPPORT   0x0

◆ RDRAND_RETRIES

#define RDRAND_RETRIES   10