myl7/fss 2.0.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
HasGenHalf Concept Reference

Optional selected-half extension of Prgable for positive even mul. More...

Concept definition

template<typename Prg, int mul>
concept HasGenHalf = mul > 0 && mul % 2 == 0 && Prgable<Prg
Optional selected-half extension of Prgable for positive even mul.
Definition prg.cuh:42
Pseudorandom generator (PRG) interface.
Definition prg.cuh:24

Detailed Description

Optional selected-half extension of Prgable for positive even mul.

GenHalf(seed, false) returns the first mul / 2 outputs of Gen(seed). GenHalf(seed, true) returns the last mul / 2 outputs in the same order. Both halves must be bit-exact with Gen() under the same PRG configuration. GenHalf() has the same execution-space, lifetime, and concurrency requirements as Gen(). Custom PRGs opt in by providing the member, without registration.

Template Parameters
PrgUser-provided or library-provided PRG type.
mulPositive even seed expansion factor, as in Prgable.