myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
prg.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 <cuda/std/array>
11#include <concepts>
12
20template <typename Prg, int mul>
21concept Prgable = requires(Prg prg, int4 seed) {
22 { prg.Gen(seed) } -> std::same_as<cuda::std::array<int4, mul>>;
23};
Pseudorandom generator (PRG) interface.
Definition prg.cuh:21