|
'privPointLoc'
|
#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 () |
Authored by Peizhao Hu. Copyright SpiRITlab - Computations on Encrypted Data Publicly available at: https://gitlab.com/SpiRITlab/coed
| 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:
| k | security parameter |
| L | number of levels |
| c | number of columns in key switching matrices |
| p | characteristic of plaintext space |
| d | embedding degree (d ==0 or d==1 => no constraint) |
| s | at least that many plaintext slots |
| chosen_m | preselected value of m (0 => not preselected) Fails with an error message if no suitable m is found prints an informative message if verbose == true |
| 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
1.8.13