recryption.h
A structure to hold recryption-related data inside the Context.
Definition: recryption.h:37
bool operator==(const RecryptData &other) const
Definition: recryption.cpp:258
std::shared_ptr< const EvalMap > firstMap
linear maps
Definition: recryption.h:59
long skHwt
Hamming weight of recryption secret key.
Definition: recryption.h:46
std::shared_ptr< const PowerfulDCRT > p2dConv
conversion between ZZX and Powerful
Definition: recryption.h:62
static void setAE(long &e, long &ePrime, const Context &context)
Helper function for computing the recryption parameters.
Definition: recryption.cpp:200
bool operator!=(const RecryptData &other) const
Definition: recryption.h:83
void init(const Context &context, const NTL::Vec< long > &mvec_, bool enableThick, bool build_cache=false, bool minimal=false)
Initialize the recryption data in the context.
Definition: recryption.cpp:270
std::shared_ptr< const PAlgebraMod > alMod
for plaintext space p^{e-e'+r}
Definition: recryption.h:49
NTL::Vec< long > mvec
Some data members that are only used for I/O.
Definition: recryption.h:40
std::vector< NTL::ZZX > unpackSlotEncoding
linPolys for unpacking the slots
Definition: recryption.h:65
std::shared_ptr< const EncryptedArray > ea
for plaintext space p^{e-e'+r}
Definition: recryption.h:52
Same as above, but for "thin" bootstrapping, where the slots are assumed to contain constants.
Definition: recryption.h:99
std::shared_ptr< const ThinEvalMap > slotToCoeff
Definition: recryption.h:102
void init(const Context &context, const NTL::Vec< long > &mvec_, bool alsoThick, bool build_cache=false, bool minimal=false)
Initialize the recryption data in the context.
Definition: recryption.cpp:773
std::shared_ptr< const ThinEvalMap > coeffToSlot
linear maps
Definition: recryption.h:102
Definition: apiAttributes.h:21
long printFlag
long thinRecrypt_initial_level