myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
fss::prg::ChaCha< mul, rounds > Class Template Reference

ChaCha as a PRG. More...

Public Member Functions

 ChaCha (const int *nonce)
 Constructor.
 
cuda::std::array< int4, mul > Gen (int4 seed)
 

Detailed Description

template<int mul, int rounds = 20>
requires (rounds % 2 == 0 && (mul == 1 || mul == 2 || mul == 4))
class fss::prg::ChaCha< mul, rounds >

ChaCha as a PRG.

Template Parameters
mulSee Prgable mul. For this class, can only be 1, 2, or 4.
roundsSecurity parameter. The default value is secure enough and widely used, thus preferred.

Constructor & Destructor Documentation

◆ ChaCha()

template<int mul, int rounds = 20>
fss::prg::ChaCha< mul, rounds >::ChaCha ( const int *  nonce)
inline

Constructor.

Parameters
nonceCan be randomly sampled by users. Read-only and can be shared by multiple instances. Users are responsible for managing their lifetime.

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