|
| | EncryptedArray (const Context &context, const NTL::ZZX &G=NTL::ZZX(1, 1)) |
| | constructor: G defaults to the monomial X, PAlgebraMod from context More...
|
| |
| | EncryptedArray (const Context &context, const PAlgebraMod &_alMod) |
| | constructor: G defaults to F0, PAlgebraMod explicitly given More...
|
| |
| EncryptedArray & | operator= (const EncryptedArray &other)=delete |
| |
| template<typename type > |
| const EncryptedArrayDerived< type > & | getDerived (type) const |
| | downcast operator example: const EncryptedArrayDerived<PA_GF2>& rep = ea.getDerived(PA_GF2()); More...
|
| |
| const EncryptedArrayCx & | getCx () const |
| |
|
| PA_tag | getTag () const |
| |
| bool | isCKKS () const |
| |
| template<template< typename > class T, typename... Args> |
| void | dispatch (Args &&... args) const |
| |
| const Context & | getContext () const |
| |
| const PAlgebraMod & | getAlMod () const |
| |
| const PAlgebra & | getPAlgebra () const |
| |
| long | getDegree () const |
| |
| void | rotate (Ctxt &ctxt, long k) const |
| |
| void | shift (Ctxt &ctxt, long k) const |
| |
| void | rotate1D (Ctxt &ctxt, long i, long k, bool dc=false) const |
| |
| void | shift1D (Ctxt &ctxt, long i, long k) const |
| |
| void | encode (zzX &ptxt, const std::vector< long > &array) const |
| |
| void | encode (NTL::ZZX &ptxt, const std::vector< long > &array) const |
| |
| void | encode (zzX &ptxt, const std::vector< zzX > &array) const |
| |
| void | encode (zzX &ptxt, const PlaintextArray &array) const |
| |
| void | encode (NTL::ZZX &ptxt, const std::vector< NTL::ZZX > &array) const |
| |
| void | encode (NTL::ZZX &ptxt, const PlaintextArray &array) const |
| |
| void | encode (zzX &ptxt, const std::vector< NTL::ZZX > &array) const |
| |
| void | encode (EncodedPtxt &eptxt, const std::vector< NTL::ZZX > &array) const |
| |
| void | encode (EncodedPtxt &eptxt, const std::vector< long > &array) const |
| |
| void | encode (EncodedPtxt &eptxt, const std::vector< cx_double > &array, double mag=-1, OptLong prec=OptLong()) const |
| |
| void | encode (EncodedPtxt &eptxt, const std::vector< double > &array, double mag=-1, OptLong prec=OptLong()) const |
| |
| void | encode (EncodedPtxt &eptxt, const PlaintextArray &array, double mag=-1, OptLong prec=OptLong()) const |
| |
| void | encode (EncodedPtxt &eptxt, const std::vector< bool > &array) const |
| |
| void | encodeUnitSelector (EncodedPtxt &eptxt, long i) const |
| |
| void | encodeUnitSelector (zzX &ptxt, long i) const |
| |
| template<typename PTXT , typename ARRAY > |
| void | decode (ARRAY &array, const PTXT &ptxt) const |
| |
| template<typename T > |
| void | random (std::vector< T > &array) const |
| |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const std::vector< NTL::ZZX > &array) const |
| |
| void | encrypt (Ctxt &ctxt, const std::vector< NTL::ZZX > &array) const |
| |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const std::vector< long > &array) const |
| |
| void | encrypt (Ctxt &ctxt, const std::vector< long > &array) const |
| |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const std::vector< cx_double > &array, double mag, OptLong prec=OptLong()) const |
| |
| void | encrypt (Ctxt &ctxt, const std::vector< cx_double > &array, UNUSED double mag, OptLong prec=OptLong()) const |
| |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const std::vector< double > &array, double mag, OptLong prec=OptLong()) const |
| |
| void | encrypt (Ctxt &ctxt, const std::vector< double > &array, double mag, OptLong prec=OptLong()) const |
| |
| void | encrypt (Ctxt &ctxt, const PubKey &key, const PlaintextArray &array, double mag=-1, OptLong prec=OptLong()) const |
| |
| void | encrypt (Ctxt &ctxt, const PlaintextArray &array, double mag=-1, OptLong prec=OptLong()) const |
| |
| template<typename T > |
| void | decrypt (const Ctxt &ctxt, const SecKey &sKey, T &ptxt) const |
| |
| template<typename T > |
| void | decrypt (const Ctxt &ctxt, const SecKey &sKey, T &ptxt, OptLong prec) const |
| |
| template<typename T > |
| void | rawDecrypt (const Ctxt &ctxt, const SecKey &sKey, T &ptxt) const |
| |
| void | decryptComplex (const Ctxt &ctxt, const SecKey &sKey, PlaintextArray &ptxt, OptLong prec=OptLong()) const |
| |
| void | rawDecryptComplex (const Ctxt &ctxt, const SecKey &sKey, PlaintextArray &ptxt) const |
| |
| void | decryptReal (const Ctxt &ctxt, const SecKey &sKey, PlaintextArray &ptxt, OptLong prec=OptLong()) const |
| |
| void | rawDecryptReal (const Ctxt &ctxt, const SecKey &sKey, PlaintextArray &ptxt) const |
| |
| void | buildLinPolyCoeffs (std::vector< NTL::ZZX > &C, const std::vector< NTL::ZZX > &L) const |
| |
| void | restoreContext () const |
| |
| void | restoreContextForG () const |
| |
| long | size () const |
| |
| long | dimension () const |
| |
| long | sizeOfDimension (long i) const |
| |
| long | nativeDimension (long i) const |
| |
| long | coordinate (long i, long k) const |
| |
| long | addCoord (long i, long k, long offset) const |
| |
| 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...
|
| |
A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-level code should use.