|
myl7/fss 2.0.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
|
#include <cuda_runtime.h>#include <cuda/std/array>#include <cuda/std/span>#include <cstddef>#include <cstdint>#include <climits>#include <cassert>#include <initializer_list>#include <limits>#include <stdexcept>#include <string>#include <type_traits>Go to the source code of this file.
Functions | |
| int4 | fss::util::Xor (int4 lhs, int4 rhs) |
| Return the bitwise XOR of two 128-bit blocks. | |
| template<size_t N> requires (N != cuda::std::dynamic_extent) | |
| cuda::std::array< int4, N > | fss::util::Xor (cuda::std::span< const int4, N > lhs, cuda::std::span< const int4, N > rhs) |
| Return the element-wise XOR of two equally sized fixed-length block sequences. | |
| int4 | fss::util::SetLsb (int4 val, bool bit) |
| Return val with bit 0 of its fourth word set to bit. | |
| bool | fss::util::GetLsb (int4 val) |
| Return bit 0 of the fourth word of val. | |
| void | fss::util::RequireArg (bool ok, const char *msg) |
| Check a caller precondition. | |