HEaaN
Crypto Lab's great homomorphic encryption library
|
Go to the documentation of this file.
27 using Context = std::shared_ptr<ContextContent>;
85 const u64 bpsize,
const u64 qpsize,
86 const u64 tpsize,
const u64 gadget_rank,
98 const std::string &filename,
const CudaDeviceIds &cuda_device_ids = {});
105 const std::string &filename);
enum HEAAN_API SecurityLevel
Enum class for security levels.
Definition: SecurityLevel.hpp:24
HEAAN_API std::vector< u64 > getPrimeList(const Context &context)
Get the list of primes.
std::set< int > CudaDeviceIds
Definition: Device.hpp:69
HEAAN_API u64 getEncryptionLevel(const Context &context)
Get the level of a fresh ciphertext, which is the maximum level that users can encrypt a ciphertext t...
HEAAN_API bool isExtendedBootstrapSupported(const Context &context)
Get whether the bootstrapping for extended range supported.
HEAAN_API Context makeContextFromFile(const std::string &filename, const CudaDeviceIds &cuda_device_ids={})
Make a context object from a "context file".
enum HEAAN_API ParameterPreset
Class of Parameter presets.
Definition: ParameterPreset.hpp:29
std::uint64_t u64
Definition: Integers.hpp:17
HEAAN_API bool isSparseSecretEncapsulationSupported(const Context &context)
Get whether the given context supports sparse secret encapsulation or not.
HEAAN_API bool isBootstrappableParameter(const Context &context)
Get whether the bootstrapping is supported.
HEAAN_API std::vector< Real > getDefaultScaleFactorList(const Context &context)
Get the default list of scale factors.
HEAAN_API SecurityLevel getSecurityLevel(const Context &context)
Get the security level of the given context.
HEAAN_API u64 getLogFullSlots(const Context &context)
Get the maximal logarithmic (base of 2) number of slots for the given context object.
HEAAN_API std::set< i64 > getRotIndicesForBootstrap(const Context &context, u64 log_slots)
Get the list of rotation key index for the bootstrapping process.
std::shared_ptr< ContextContent > Context
Definition: Context.hpp:27
HEAAN_API Context makeContext(const ParameterPreset &preset, const CudaDeviceIds &cuda_device_ids={})
Make a context object based on a given parameter preset.
#define HEAAN_API
Definition: HEaaNExport.hpp:26
Definition: Bootstrapper.hpp:16
HEAAN_API void saveContextToFile(const Context &context, const std::string &filename)
Save a context object into a file.