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

Bytes with XOR as a group. More...

Public Member Functions

Bytes operator+ (Bytes rhs) const
 Return the group sum, the bitwise XOR of both values.
Bytes operator- () const
 Return the additive inverse, which is this value in the XOR group.
 Bytes ()
 Construct the additive identity.
int4 Into () const
 Return this group element as a clamped block.

Static Public Member Functions

static Bytes From (int4 buf)
 Wrap a clamped block as a group element.

Detailed Description

Bytes with XOR as a group.

Member Function Documentation

◆ From()

Bytes fss::group::Bytes::From ( int4 buf)
inlinestatic

Wrap a clamped block as a group element.

Precondition
buf.w & 1 == 0. A violation aborts with a diagnostic in Debug builds on both the host and the device, and is undefined behavior in Release builds.

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