MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | Static Public Attributes | List of all members
encrypto::motion::Rng Class Referenceabstract

#include <rng.h>

Inheritance diagram for encrypto::motion::Rng:
Inheritance graph
[legend]

Public Member Functions

 Rng ()=default
 
virtual ~Rng ()=default
 
virtual void SampleKey ()=0
 
virtual void RandomBytes (std::byte *output, std::size_t number_of_bytes)=0
 
virtual void RandomBlocks (std::byte *output, std::size_t number_of_blocks)=0
 
virtual void RandomBlocksAligned (std::byte *output, std::size_t number_of_blocks)=0
 

Static Public Attributes

static constexpr std::size_t kBlockSize = 16
 

Constructor & Destructor Documentation

◆ Rng()

encrypto::motion::Rng::Rng ( )
default

◆ ~Rng()

virtual encrypto::motion::Rng::~Rng ( )
virtualdefault

Member Function Documentation

◆ RandomBlocks()

virtual void encrypto::motion::Rng::RandomBlocks ( std::byte *  output,
std::size_t  number_of_blocks 
)
pure virtual

◆ RandomBlocksAligned()

virtual void encrypto::motion::Rng::RandomBlocksAligned ( std::byte *  output,
std::size_t  number_of_blocks 
)
pure virtual

◆ RandomBytes()

virtual void encrypto::motion::Rng::RandomBytes ( std::byte *  output,
std::size_t  number_of_bytes 
)
pure virtual

◆ SampleKey()

virtual void encrypto::motion::Rng::SampleKey ( )
pure virtual

Member Data Documentation

◆ kBlockSize

constexpr std::size_t encrypto::motion::Rng::kBlockSize = 16
staticconstexpr

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