Class Blake2Engine
Defined in File blake2engine.h
Page Contents
Inheritance Relationships
Base Type
public PRNG(Class PRNG)
Class Documentation
-
class default_prng::Blake2Engine : public PRNG
Inheritence diagram for default_prng::Blake2Engine:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"1" [label="default_prng::Blake2Engine" tooltip="default_prng::Blake2Engine" fillcolor="#BFBFBF"]
"2" [label="PRNG" tooltip="PRNG"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-41cc70e941bab2330c65f4855335f9e5ff9c9c6d.png)
Collaboration diagram for default_prng::Blake2Engine:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"1" [label="default_prng::Blake2Engine" tooltip="default_prng::Blake2Engine" fillcolor="#BFBFBF"]
"2" [label="PRNG" tooltip="PRNG"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-41cc70e941bab2330c65f4855335f9e5ff9c9c6d.png)
Defines the PRNG engine (based on BLAKE2) used by OpenFHE. It can be used as an example for adding other PRNG engines to OpenFHE.
Public Types
-
using blake2_seed_array_t = std::array<PRNG::result_type, MAX_SEED_GENS>
Public Functions
-
inline explicit Blake2Engine(const blake2_seed_array_t &seed, uint64_t counter)
Main constructor taking an array of integers as a seed and a counter. If there is no value for the counter, then pass zero as the counter value.
-
~Blake2Engine()
-
inline virtual PRNG::result_type operator()() override
main call to the PRNG
-
using blake2_seed_array_t = std::array<PRNG::result_type, MAX_SEED_GENS>