'privPointLoc'
Public Member Functions | List of all members
Encryptor Class Reference

#include <Encryptor.h>

Public Member Functions

 Encryptor (const std::string &, const std::string &, long, long, long, long, long)
 
 Encryptor (const std::string &, const std::string &, long, long, long, long, long, long)
 
 Encryptor (const std::string &, const std::string &)
 
void testEncryption ()
 
void decryptAndPrint (const std::string &, const helib::Ctxt &)
 
void decryptAndPrintCondensed (const std::string &, const helib::Ctxt &, int)
 
helib::Context * getContext () const
 
helib::SecKey * getSecretKey () const
 
helib::PubKey * getPublicKey () const
 
helib::EncryptedArray * getEncryptedArray () const
 
int getSlotCount ()
 

Detailed Description

Authored by Peizhao Hu. Copyright SpiRITlab - Computations on Encrypted Data Publicly available at: https://gitlab.com/SpiRITlab/coed

Constructor & Destructor Documentation

◆ Encryptor()

Encryptor::Encryptor ( const std::string &  private_key_file_path,
const std::string &  public_key_file_path,
long  plaintextModulus,
long  lifting,
long  numOfBitsOfModulusChain,
long  numOfColOfKeySwitchingMatrix,
long  desiredSlotCount,
long  securityLevel 
)

Returns smallest parameter m satisfying various constraints:

Parameters
ksecurity parameter
Lnumber of levels
cnumber of columns in key switching matrices
pcharacteristic of plaintext space
dembedding degree (d ==0 or d==1 => no constraint)
sat least that many plaintext slots
chosen_mpreselected value of m (0 => not preselected) Fails with an error message if no suitable m is found prints an informative message if verbose == true

Member Function Documentation

◆ decryptAndPrintCondensed()

void Encryptor::decryptAndPrintCondensed ( const std::string &  msg,
const helib::Ctxt &  ctxt,
int  size 
)

Authored by Adam Caulfield. Thi is a modified version of decryptAndPrint(), which decrypts and prints a ciphertext. This version prints slots up to an integer length


The documentation for this class was generated from the following files: