|
myl7/fss 2.0.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
|
ChaCha as a PRG. More...
Public Member Functions | |
| ChaCha (int nonce0, int nonce1) | |
| Constructor. | |
ChaCha as a PRG.
| mul | Seed expansion factor. Gen() maps one 16 B seed to mul * 16 B. Supported factors are 1, 2, and 4. |
| rounds | Positive even round count. The default value is secure enough and widely used, thus preferred. |
|
inline |
Constructor.
| nonce0,nonce1 | Can be randomly sampled by users. The nonce is stored by value, so an instance built on the host works on the device too: kernels capture the owning scheme object by value. |