HEaaN
Crypto Lab's great homomorphic encryption library
Namespaces | Typedefs | Functions
Context.hpp File Reference
#include <memory>
#include <string>
#include <vector>
#include "HEaaN/Integers.hpp"
#include "HEaaN/ParameterPreset.hpp"
#include "HEaaN/SecurityLevel.hpp"
#include "HEaaN/device/Device.hpp"
#include "HEaaNExport.hpp"
#include "Real.hpp"
Include dependency graph for Context.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 HEaaN
 

Typedefs

using HEaaN::Context = std::shared_ptr< ContextContent >
 

Functions

HEAAN_API Context HEaaN::makeContext (const ParameterPreset &preset, const CudaDeviceIds &cuda_device_ids={})
 Make a context object based on a given parameter preset. More...
 
HEAAN_API Context HEaaN::makeContext (const u64 log_dimension, const u64 chain_length, const u64 bpsize, const u64 qpsize, const u64 tpsize, const u64 gadget_rank, const CudaDeviceIds &cuda_device_ids={})
 Make a context based on custom parameters. More...
 
HEAAN_API Context HEaaN::makeContextFromFile (const std::string &filename, const CudaDeviceIds &cuda_device_ids={})
 Make a context object from a "context file". More...
 
HEAAN_API void HEaaN::saveContextToFile (const Context &context, const std::string &filename)
 Save a context object into a file. More...
 
HEAAN_API u64 HEaaN::getLogFullSlots (const Context &context)
 Get the maximal logarithmic (base of 2) number of slots for the given context object. More...
 
HEAAN_API u64 HEaaN::getEncryptionLevel (const Context &context)
 Get the level of a fresh ciphertext, which is the maximum level that users can encrypt a ciphertext to. More...
 
HEAAN_API std::vector< Real > HEaaN::getDefaultScaleFactorList (const Context &context)
 Get the default list of scale factors. More...
 
HEAAN_API std::vector< u64 > HEaaN::getPrimeList (const Context &context)
 Get the list of primes. More...
 
HEAAN_API bool HEaaN::isBootstrappableParameter (const Context &context)
 Get whether the bootstrapping is supported. More...
 
HEAAN_API bool HEaaN::isSparseSecretEncapsulationSupported (const Context &context)
 Get whether the given context supports sparse secret encapsulation or not. More...
 
HEAAN_API bool HEaaN::isExtendedBootstrapSupported (const Context &context)
 Get whether the bootstrapping for extended range supported. More...
 
HEAAN_API std::set< i64 > HEaaN::getRotIndicesForBootstrap (const Context &context, u64 log_slots)
 Get the list of rotation key index for the bootstrapping process. More...
 
HEAAN_API SecurityLevel HEaaN::getSecurityLevel (const Context &context)
 Get the security level of the given context. More...