Class CoefPackedEncoding
Defined in File coefpackedencoding.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::PlaintextImpl
(Class PlaintextImpl)
Class Documentation
-
class lbcrypto::CoefPackedEncoding : public lbcrypto::PlaintextImpl
Inheritence diagram for lbcrypto::CoefPackedEncoding:
Collaboration diagram for lbcrypto::CoefPackedEncoding:
Public Functions
-
virtual ~CoefPackedEncoding() = default
-
inline virtual const std::vector<int64_t> &GetCoefPackedValue() const
GetCoeffsValue
- Returns
the un-encoded scalar
-
inline virtual void SetIntVectorValue(const std::vector<int64_t> &val)
SetIntVectorValue
- Parameters
val – integer vector to initialize the plaintext
-
virtual bool Encode()
Encode the plaintext into the Poly
- Returns
true on success
-
virtual bool Decode()
Decode the Poly into the string
- Returns
true on success
-
inline virtual PlaintextEncodings GetEncodingType() const
GetEncodingType
- Returns
this is a COEF_PACKED_ENCODING encoding
-
inline virtual size_t GetLength() const
Get length of the plaintext
- Returns
number of elements in this plaintext
-
inline virtual void SetLength(size_t siz)
SetLength of the plaintext to the given size
- Parameters
siz –
-
inline virtual bool CompareTo(const PlaintextImpl &other) const
Method to compare two plaintext to test for equivalence Testing that the plaintexts are of the same type done in operator==
- Parameters
other – - the other plaintext to compare to.
- Returns
whether the two plaintext are equivalent.
-
inline virtual void PrintValue(std::ostream &out) const
PrintValue - used by operator<< for this object
- Parameters
out –
-
virtual ~CoefPackedEncoding() = default