|
| | EncryptedArrayDerived (const Context &_context, const RX &_G, const PAlgebraMod &_tab) |
| |
| | EncryptedArrayDerived (const EncryptedArrayDerived &other) |
| |
| EncryptedArrayDerived & | operator= (const EncryptedArrayDerived &other) |
| |
| virtual EncryptedArrayBase * | clone () const override |
| |
| virtual PA_tag | getTag () const override |
| |
| template<template< typename > class T, typename... Args> |
| void | dispatch (Args &&... args) const |
| |
| const RX & | getG () const |
| |
| const NTL::Mat< R > & | getNormalBasisMatrix () const |
| |
| const NTL::Mat< R > & | getNormalBasisMatrixInverse () const |
| |
| void | initNormalBasisMatrix () const |
| |
| virtual void | restoreContext () const override |
| |
| virtual void | restoreContextForG () const override |
| |
| virtual const Context & | getContext () const override |
| |
| virtual const PAlgebra & | getPAlgebra () const override |
| |
| virtual long | getDegree () const override |
| |
| const PAlgebraModDerived< type > & | getTab () const |
| |
| virtual void | rotate (Ctxt &ctxt, long k) const override |
| | Right rotation as a linear array. E.g., rotating ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(n 1 2 ... n-1) More...
|
| |
| virtual void | shift (Ctxt &ctxt, long k) const override |
| | Non-cyclic right shift with zero fill E.g., shifting ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(0 1 2... n-1) More...
|
| |
| virtual void | rotate1D (Ctxt &ctxt, long i, long k, bool dc=false) const override |
| | right-rotate k positions along the i'th dimension More...
|
| |
| long | getP2R () const override |
| |
| template<typename U > |
| void | rotate1D (std::vector< U > &out, const std::vector< U > &in, long i, long offset) const |
| |
| virtual void | shift1D (Ctxt &ctxt, long i, long k) const override |
| | Right shift k positions along the i'th dimension with zero fill. More...
|
| |
| void | decrypt (UNUSED const Ctxt &ctxt, UNUSED const SecKey &sKey, UNUSED std::vector< double > &ptxt) const override |
| | Unimplemented decrypt function for CKKS. It will always throw helib::LogicError. More...
|
| |
| void | decrypt (UNUSED const Ctxt &ctxt, UNUSED const SecKey &sKey, UNUSED std::vector< cx_double > &ptxt) const override |
| | Unimplemented decrypt function for CKKS. It will always throw helib::LogicError. More...
|
| |
| virtual void | encode (NTL::ZZX &ptxt, const std::vector< long > &array) const override |
| |
| virtual void | encode (zzX &ptxt, const std::vector< long > &array) const override |
| |
| virtual void | encode (NTL::ZZX &ptxt, const std::vector< NTL::ZZX > &array) const override |
| |
| virtual void | encode (zzX &ptxt, const std::vector< zzX > &array) const override |
| |
| virtual void | encode (NTL::ZZX &ptxt, const PlaintextArray &array) const override |
| |
| virtual void | encode (zzX &ptxt, const PlaintextArray &array) const override |
| |
| virtual void | encodeUnitSelector (zzX &ptxt, long i) const override |
| | Encodes a std::vector with 1 at position i and 0 everywhere else. More...
|
| |
| virtual void | decode (std::vector< long > &array, const NTL::ZZX &ptxt) const override |
| |
| virtual void | decode (std::vector< NTL::ZZX > &array, const NTL::ZZX &ptxt) const override |
| |
| virtual void | decode (PlaintextArray &array, const NTL::ZZX &ptxt) const override |
| |
| virtual void | decode (PlaintextArray &array, const zzX &ptxt) const |
| |
| virtual void | random (std::vector< long > &array) const override |
| |
| virtual void | random (std::vector< NTL::ZZX > &array) const override |
| |
| virtual void | decrypt (const Ctxt &ctxt, const SecKey &sKey, std::vector< long > &ptxt) const override |
| |
| virtual void | decrypt (const Ctxt &ctxt, const SecKey &sKey, std::vector< NTL::ZZX > &ptxt) const override |
| |
| virtual void | decrypt (const Ctxt &ctxt, const SecKey &sKey, PlaintextArray &ptxt) const override |
| |
| virtual void | buildLinPolyCoeffs (std::vector< NTL::ZZX > &C, const std::vector< NTL::ZZX > &L) const override |
| | Linearized polynomials. L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. The result is a coefficient std::vector C for the linearized polynomial representing M: a polynomial h in Z/(p^r)[X] of degree < d is sent to. More...
|
| |
| void | encode (zzX &ptxt, const std::vector< RX > &array) const |
| |
| void | decode (std::vector< RX > &array, const zzX &ptxt) const |
| |
| void | encode (NTL::ZZX &ptxt, const std::vector< RX > &array) const |
| |
| void | decode (std::vector< RX > &array, const NTL::ZZX &ptxt) const |
| |
| void | encode (RX &ptxt, const std::vector< RX > &array) const |
| |
| void | decode (std::vector< RX > &array, const RX &ptxt) const |
| |
| void | random (std::vector< RX > &array) const |
| |
| void | decrypt (const Ctxt &ctxt, const SecKey &sKey, std::vector< RX > &ptxt) const |
| |
| virtual void | buildLinPolyCoeffs (std::vector< RX > &C, const std::vector< RX > &L) const |
| |
| virtual | ~EncryptedArrayBase () |
| |
| long | size () const |
| | Total size (# of slots) of hypercube. More...
|
| |
| long | dimension () const |
| | Number of dimensions of hypercube. More...
|
| |
| long | sizeOfDimension (long i) const |
| | Size of given dimension. More...
|
| |
| bool | nativeDimension (long i) const |
| | Is rotations in given dimension a "native" operation? More...
|
| |
| long | coordinate (long i, long k) const |
| | returns coordinate of index k along the i'th dimension More...
|
| |
| long | addCoord (long i, long k, long offset) const |
| | adds offset to index k in the i'th dimension More...
|
| |
| template<typename U > |
| void | rotate1D (std::vector< U > &out, const std::vector< U > &in, long i, long offset) const |
| | rotate an array by offset in the i'th dimension (output should not alias input) More...
|
| |
| void | encode (zzX &ptxt, const std::vector< NTL::ZZX > &array) const |
| |
| long | decode1Slot (const NTL::ZZX &ptxt, long i) const |
| |
| void | decode1Slot (NTL::ZZX &slot, const NTL::ZZX &ptxt, long i) const |
| |
| template<typename PTXT > |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const PTXT &ptxt) const |
| |
| virtual void | decrypt (const Ctxt &ctxt, const SecKey &sKey, std::vector< double > &ptxt) const =0 |
| |
| virtual void | decrypt (const Ctxt &ctxt, const SecKey &sKey, std::vector< cx_double > &ptxt) const =0 |
| |
| long | decrypt1Slot (const Ctxt &ctxt, const SecKey &sKey, long i) const |
| |
| void | decrypt1Slot (NTL::ZZX &slot, const Ctxt &ctxt, const SecKey &sKey, long i) const |
| |
template<typename type>
class helib::EncryptedArrayDerived< type >
Derived concrete implementation of EncryptedArrayBase.