myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
group.cuh
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
8#pragma once
9#include <cuda_runtime.h>
10#include <concepts>
11#include <type_traits>
12
39template <typename Group>
40concept Groupable =
41 std::is_default_constructible_v<Group> && requires(Group lhs, Group rhs, int4 buf) {
42 { lhs + rhs } -> std::same_as<Group>;
43 { -lhs } -> std::same_as<Group>;
44 { Group::From(buf) } -> std::same_as<Group>;
45 { lhs.Into() } -> std::same_as<int4>;
46 };
Group interface.
Definition group.cuh:40