|
myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
|
Group interface. More...
Group interface.
For the output domain of DPF/DCF.
From(): Convert a clamped 16B to the group element.
Into(): Convert the group element to a clamped 16B.
We fix the output domain size at 16B and always set the last word's least significant bit (LSB) to 0, corresponding to \(\lambda = 127\). We call setting the last word's LSB to 0 as clamping, which is adapted from libsodium's documentation. We call this LSB as the clamped bit. This output domain is large enough for most applications. Larger output domain of DPF can be implemented with Spectrum's large message transformation (1) by applying a PRG to outputs. For general cases, you may repeat the scheme or modify the source code. When modifying the source code, you need to care about the stack usage on CPU and the register usage on GPU, which is the primary reason why we fix the output domain size.