HEaaN
Crypto Lab's great homomorphic encryption library
|
Go to the documentation of this file.
20 enum Type : uint32_t { Enc, Mult, Rot, Conj, SparseSecretEncapsulation };
26 i64 rot_idx_input = 0)
27 : type(type_input), rot_idx(rot_idx_input) {}
30 if (type == Type::Rot)
31 return type == other.
type && rot_idx == other.
rot_idx;
32 return type == other.
type;
35 return !(*
this == other);
38 template <
class Archive>
void serialize(Archive &ar) { ar(type, rot_idx); }
Configuration for collective key generation on which key to generate.
Definition: CollectiveKeyGenConfig.hpp:19
bool operator==(const CollectiveKeyGenConfig &other) const
Definition: CollectiveKeyGenConfig.hpp:29
CollectiveKeyGenConfig(CollectiveKeyGenConfig::Type type_input, i64 rot_idx_input=0)
Definition: CollectiveKeyGenConfig.hpp:25
std::int64_t i64
Definition: Integers.hpp:18
i64 rot_idx
Definition: CollectiveKeyGenConfig.hpp:23
Type type
Definition: CollectiveKeyGenConfig.hpp:22
Type
Definition: CollectiveKeyGenConfig.hpp:20
void serialize(Archive &ar)
Definition: CollectiveKeyGenConfig.hpp:38
#define HEAAN_API
Definition: HEaaNExport.hpp:26
bool operator!=(const CollectiveKeyGenConfig &other) const
Definition: CollectiveKeyGenConfig.hpp:34
Definition: Bootstrapper.hpp:16