Class LWECiphertextImpl

Inheritance Relationships

Base Type

Class Documentation

class lbcrypto::LWECiphertextImpl : public lbcrypto::Serializable

Inheritence diagram for lbcrypto::LWECiphertextImpl:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "2" [label="lbcrypto::Serializable" tooltip="lbcrypto::Serializable"]
    "1" [label="lbcrypto::LWECiphertextImpl" tooltip="lbcrypto::LWECiphertextImpl" fillcolor="#BFBFBF"]
    "1" -> "2" [dir=forward tooltip="public-inheritance"]
}

Collaboration diagram for lbcrypto::LWECiphertextImpl:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "2" [label="lbcrypto::Serializable" tooltip="lbcrypto::Serializable"]
    "1" [label="lbcrypto::LWECiphertextImpl" tooltip="lbcrypto::LWECiphertextImpl" fillcolor="#BFBFBF"]
    "1" -> "2" [dir=forward tooltip="public-inheritance"]
}

Class that stores a LWE scheme ciphertext; composed of a vector “a” and integer “b”.

Public Functions

LWECiphertextImpl() = default
inline LWECiphertextImpl(const NativeVector &a, NativeInteger b, NativeInteger p = 4)
inline LWECiphertextImpl(NativeVector &&a, NativeInteger b, NativeInteger p = 4) noexcept
inline LWECiphertextImpl(const LWECiphertextImpl &rhs)
inline LWECiphertextImpl(LWECiphertextImpl &&rhs) noexcept
inline LWECiphertextImpl &operator=(const LWECiphertextImpl &rhs)
inline LWECiphertextImpl &operator=(LWECiphertextImpl &&rhs) noexcept
inline const NativeVector &GetA() const
inline NativeVector &GetA()
inline NativeInteger GetB() const
inline NativeInteger GetModulus() const
inline uint32_t GetLength() const
inline NativeInteger GetptModulus() const
inline void SetA(const NativeVector &a)
inline void SetA(NativeVector &&a) noexcept
inline void SetB(NativeInteger b)
inline void SetModulus(NativeInteger q)
inline void SetptModulus(NativeInteger pmod)
inline bool operator==(const LWECiphertextImpl &other) const
inline bool operator!=(const LWECiphertextImpl &other) const
template<class Archive>
inline void save(Archive &ar, std::uint32_t const version) const
template<class Archive>
inline void load(Archive &ar, std::uint32_t const version)
inline virtual std::string SerializedObjectName() const override

Public Static Functions

static inline uint32_t SerializedVersion()