12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include "openfhe/pke/scheme/gen-cryptocontext-params.h"
- #include "openfhe/pke/scheme/bfvrns/gen-cryptocontext-bfvrns-params.h"
- #include "openfhe/pke/scheme/bgvrns/gen-cryptocontext-bgvrns-params.h"
- #include "openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns-params.h"
- namespace openfhe
- {
- using SCHEME = lbcrypto::SCHEME;
- using SecretKeyDist = lbcrypto::SecretKeyDist;
- using ProxyReEncryptionMode = lbcrypto::ProxyReEncryptionMode;
- using MultipartyMode = lbcrypto::MultipartyMode;
- using ExecutionMode = lbcrypto::ExecutionMode;
- using DecryptionNoiseMode = lbcrypto::DecryptionNoiseMode;
- using KeySwitchTechnique = lbcrypto::KeySwitchTechnique;
- using ScalingTechnique = lbcrypto::ScalingTechnique;
- using SecurityLevel = lbcrypto::SecurityLevel;
- using EncryptionTechnique = lbcrypto::EncryptionTechnique;
- using MultiplicationTechnique = lbcrypto::MultiplicationTechnique;
- using COMPRESSION_LEVEL = lbcrypto::COMPRESSION_LEVEL;
- using Params = lbcrypto::Params;
- using ParamsBFVRNS = lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS>;
- using ParamsBGVRNS = lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS>;
- using ParamsCKKSRNS = lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS>;
- // Generator functions
- [[nodiscard]] std::unique_ptr<Params> GenParamsByScheme(const SCHEME scheme);
- [[nodiscard]] std::unique_ptr<Params> GenParamsByVectorOfString(
- const std::vector<std::string>& vals);
- [[nodiscard]] std::unique_ptr<ParamsBFVRNS> GenParamsBFVRNS();
- [[nodiscard]] std::unique_ptr<ParamsBFVRNS> GenParamsBFVRNSbyVectorOfString(
- const std::vector<std::string>& vals);
- [[nodiscard]] std::unique_ptr<ParamsBGVRNS> GenParamsBGVRNS();
- [[nodiscard]] std::unique_ptr<ParamsBGVRNS> GenParamsBGVRNSbyVectorOfString(
- const std::vector<std::string>& vals);
- [[nodiscard]] std::unique_ptr<ParamsCKKSRNS> GenParamsCKKSRNS();
- [[nodiscard]] std::unique_ptr<ParamsCKKSRNS> GenParamsCKKSRNSbyVectorOfString(
- const std::vector<std::string>& vals);
- } // openfhe
|