|
| FHESecKey (const FHEcontext &_context) |
|
bool | operator== (const FHESecKey &other) const |
|
bool | operator!= (const FHESecKey &other) const |
|
void | clear () |
|
long | ImportSecKey (const DoubleCRT &sKey, long hwt, long ptxtSpace=0) |
|
long | GenSecKey (long hwt, long ptxtSpace=0) |
|
void | GenKeySWmatrix (long fromSPower, long fromXPower, long fromKeyIdx=0, long toKeyIdx=0, long ptxtSpace=0) |
|
void | Decrypt (ZZX &plaintxt, const Ctxt &ciphertxt) const |
|
void | Decrypt (ZZX &plaintxt, const Ctxt &ciphertxt, ZZX &f) const |
| Debugging version, returns in f the polynomial before reduction modulo the ptxtSpace.
|
|
long | Encrypt (Ctxt &ctxt, const ZZX &ptxt, long ptxtSpace=0, long skIdx=0) const |
| Symmetric encryption using the secret key.
|
|
| FHEPubKey (const FHEcontext &_context) |
|
void | clear () |
|
bool | operator== (const FHEPubKey &other) const |
|
bool | operator!= (const FHEPubKey &other) const |
|
const FHEcontext & | getContext () const |
|
long | getSKeyWeight (long keyID=0) const |
| The Hamming weight of the secret key.
|
|
bool | isReachable (long k, long keyID=0) const |
| Is it possible to re-linearize the automorphism X -> X^k See Section 3.2.2 in the design document (KeySwitchMap)
|
|
void | setKeySwitchMap (long keyId=0) |
| Compute the reachability graph of key-switching matrices See Section 3.2.2 in the design document (KeySwitchMap)
|
|
long | Encrypt (Ctxt &ciphertxt, const ZZX &plaintxt, long ptxtSpace=0) const |
| Result returned in the ciphertext argument, The resurn value is the plaintext-space for that ciphertext.
|
|
const KeySwitch & | getKeySWmatrix (const SKHandle &from, long toID=0) const |
| Find a key-switching matrix by its indexes. If no such matrix exists it returns a dummy matrix with toKeyID==-1.
|
|
const KeySwitch & | getKeySWmatrix (long fromSPower, long fromXPower, long fromID=0, long toID=0) const |
|
bool | haveKeySWmatrix (const SKHandle &from, long toID=0) const |
|
bool | haveKeySWmatrix (long fromSPower, long fromXPower, long fromID=0, long toID=0) const |
|
const KeySwitch & | getAnyKeySWmatrix (const SKHandle &from) const |
| Is there a matrix from this key to any base key?
|
|
bool | haveAnyKeySWmatrix (const SKHandle &from) const |
|
const KeySwitch & | getNextKSWmatrix (long fromXPower, long fromID=0) const |
| Get the next matrix to use for multi-hop automorphism See Section 3.2.2 in the design document.
|
|