OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::RandomByteStore< RAND_TYPE > Class Template Reference

#include <randbytestore.hpp>

Collaboration diagram for openvpn::RandomByteStore< RAND_TYPE >:
[legend]

Classes

union  Result
 

Public Member Functions

unsigned char get_byte (RAND_TYPE &rng)
 
template<typename T >
void fill (T &obj, RAND_TYPE &rng)
 

Static Public Attributes

static constexpr size_t SIZE = sizeof(typename RAND_TYPE::result_type)
 

Private Attributes

Result res
 
unsigned int n_bytes = 0
 

Detailed Description

template<typename RAND_TYPE>
class openvpn::RandomByteStore< RAND_TYPE >

Definition at line 20 of file randbytestore.hpp.

Member Function Documentation

◆ fill()

template<typename RAND_TYPE >
template<typename T >
void openvpn::RandomByteStore< RAND_TYPE >::fill ( T &  obj,
RAND_TYPE &  rng 
)
inline

Definition at line 39 of file randbytestore.hpp.

Here is the caller graph for this function:

◆ get_byte()

template<typename RAND_TYPE >
unsigned char openvpn::RandomByteStore< RAND_TYPE >::get_byte ( RAND_TYPE &  rng)
inline

Definition at line 25 of file randbytestore.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ n_bytes

template<typename RAND_TYPE >
unsigned int openvpn::RandomByteStore< RAND_TYPE >::n_bytes = 0
private

Definition at line 53 of file randbytestore.hpp.

◆ res

template<typename RAND_TYPE >
Result openvpn::RandomByteStore< RAND_TYPE >::res
private

Definition at line 52 of file randbytestore.hpp.

◆ SIZE

template<typename RAND_TYPE >
constexpr size_t openvpn::RandomByteStore< RAND_TYPE >::SIZE = sizeof(typename RAND_TYPE::result_type)
staticconstexpr

Definition at line 23 of file randbytestore.hpp.


The documentation for this class was generated from the following file: