Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
Friends |
List of all members
helib::PtxtArray Class Reference
#include <EncryptedArray.h>
Public Member Functions | |
PtxtArray (const EncryptedArray &ea_) | |
PtxtArray (const Context &context) | |
PtxtArray (const PtxtArray &)=default | |
template<class T > | |
PtxtArray (const EncryptedArray &ea, const T &t) | |
template<class T > | |
PtxtArray (const Context &context, const T &t) | |
PtxtArray & | operator= (const PtxtArray &other) |
template<class T > | |
PtxtArray & | operator= (const T &t) |
const EncryptedArray & | getView () const |
const EncryptedArray & | getEA () const |
long | size () const |
void | encode (EncodedPtxt &eptxt, double mag=-1, OptLong prec=OptLong()) const |
void | encrypt (Ctxt &ctxt, double mag=-1, OptLong prec=OptLong()) const |
void | decrypt (const Ctxt &ctxt, const SecKey &sKey, OptLong prec=OptLong()) |
void | rawDecrypt (const Ctxt &ctxt, const SecKey &sKey) |
void | decryptComplex (const Ctxt &ctxt, const SecKey &sKey, OptLong prec=OptLong()) |
void | rawDecryptComplex (const Ctxt &ctxt, const SecKey &sKey) |
void | decryptReal (const Ctxt &ctxt, const SecKey &sKey, OptLong prec=OptLong()) |
void | rawDecryptReal (const Ctxt &ctxt, const SecKey &sKey) |
void | randomReal () |
void | randomComplex () |
void | random () |
void | load (const std::vector< int > &array) |
void | load (const std::vector< long > &array) |
void | load (const std::vector< NTL::ZZX > &array) |
void | load (const std::vector< cx_double > &array) |
void | load (const std::vector< double > &array) |
void | load (int val) |
void | load (long val) |
void | load (const NTL::ZZX &val) |
void | load (double val) |
void | load (cx_double val) |
void | load (const NTL::Vec< NTL::GF2 > &vec) |
void | load (const NTL::Vec< NTL::GF2X > &vec) |
void | load (const NTL::Vec< NTL::zz_p > &vec) |
void | load (const NTL::Vec< NTL::zz_pX > &vec) |
void | load (NTL::GF2 scalar) |
void | load (const NTL::GF2X &scalar) |
void | load (NTL::zz_p scalar) |
void | load (const NTL::zz_pX &scalar) |
void | store (std::vector< long > &array) const |
void | store (std::vector< NTL::ZZX > &array) const |
void | store (std::vector< cx_double > &array) const |
void | store (std::vector< double > &array) const |
void | negate () |
void | writeToJSON (std::ostream &os) const |
JsonWrapper | writeToJSON () const |
void | readJSON (std::istream &is) |
void | readJSON (const JsonWrapper &jw) |
Static Public Member Functions | |
static PtxtArray | readFromJSON (std::istream &is, const Context &context) |
static PtxtArray | readFromJSON (const JsonWrapper &jw, const Context &context) |
Public Attributes | |
const EncryptedArray & | ea |
PlaintextArray | pa |
Static Public Attributes | |
static constexpr std::string_view | typeName = "PtxtArray" |
Class label to be added to JSON serialization as object type information. More... | |
Friends | |
std::istream & | operator>> (std::istream &is, PtxtArray &pa) |
std::ostream & | operator<< (std::ostream &os, const PtxtArray &pa) |
Constructor & Destructor Documentation
◆ PtxtArray() [1/5]
|
inlineexplicit |
◆ PtxtArray() [2/5]
|
inlineexplicit |
◆ PtxtArray() [3/5]
|
default |
◆ PtxtArray() [4/5]
template<class T >
|
inline |
◆ PtxtArray() [5/5]
template<class T >
|
inline |
Member Function Documentation
◆ decrypt()
|
inline |
◆ decryptComplex()
|
inline |
◆ decryptReal()
|
inline |
◆ encode()
|
inline |
◆ encrypt()
|
inline |
◆ getEA()
|
inline |
◆ getView()
|
inline |
◆ load() [1/18]
|
inline |
◆ load() [2/18]
|
inline |
◆ load() [3/18]
|
inline |
◆ load() [4/18]
|
inline |
◆ load() [5/18]
|
inline |
◆ load() [6/18]
|
inline |
◆ load() [7/18]
|
inline |
◆ load() [8/18]
|
inline |
◆ load() [9/18]
|
inline |
◆ load() [10/18]
|
inline |
◆ load() [11/18]
|
inline |
◆ load() [12/18]
|
inline |
◆ load() [13/18]
|
inline |
◆ load() [14/18]
|
inline |
◆ load() [15/18]
|
inline |
◆ load() [16/18]
|
inline |
◆ load() [17/18]
|
inline |
◆ load() [18/18]
|
inline |
◆ negate()
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
template<class T >
|
inline |
◆ random()
|
inline |
◆ randomComplex()
|
inline |
◆ randomReal()
|
inline |
◆ rawDecrypt()
◆ rawDecryptComplex()
◆ rawDecryptReal()
◆ readFromJSON() [1/2]
|
static |
◆ readFromJSON() [2/2]
◆ readJSON() [1/2]
void helib::PtxtArray::readJSON | ( | const JsonWrapper & | jw | ) |
◆ readJSON() [2/2]
void helib::PtxtArray::readJSON | ( | std::istream & | is | ) |
◆ size()
|
inline |
◆ store() [1/4]
|
inline |
◆ store() [2/4]
|
inline |
◆ store() [3/4]
|
inline |
◆ store() [4/4]
|
inline |
◆ writeToJSON() [1/2]
JsonWrapper helib::PtxtArray::writeToJSON | ( | ) | const |
◆ writeToJSON() [2/2]
void helib::PtxtArray::writeToJSON | ( | std::ostream & | os | ) | const |
Friends And Related Function Documentation
◆ operator<<
|
friend |
◆ operator>>
|
friend |
Member Data Documentation
◆ ea
const EncryptedArray& helib::PtxtArray::ea |
◆ pa
PlaintextArray helib::PtxtArray::pa |
◆ typeName
|
staticconstexpr |
Class label to be added to JSON serialization as object type information.