Template Class PublicKeyImpl
Defined in File publickey.h
Inheritance Relationships
Base Type
public lbcrypto::Key< Element >
(Template Class Key)
Template Parameter Order
typename Element
Class Documentation
-
template<typename Element>
class lbcrypto::PublicKeyImpl : public lbcrypto::Key<Element> Inheritence diagram for lbcrypto::PublicKeyImpl:
Collaboration diagram for lbcrypto::PublicKeyImpl:
Class for public key.
- Template Parameters
Element – a ring element.
Public Functions
-
inline explicit PublicKeyImpl(CryptoContext<Element> cc = 0, const std::string &id = "")
Basic constructor
- Parameters
cc – - CryptoContext
id – - key identifier
-
inline explicit PublicKeyImpl(const PublicKeyImpl<Element> &rhs)
Copy constructor
- Parameters
&rhs – PublicKeyImpl to copy from
-
inline explicit PublicKeyImpl(PublicKeyImpl<Element> &&rhs) noexcept
Move constructor
- Parameters
&rhs – PublicKeyImpl to move from
-
inline operator bool() const
-
inline PublicKeyImpl<Element> &operator=(const PublicKeyImpl<Element> &rhs)
Assignment Operator.
- Parameters
&rhs – PublicKeyImpl to copy from
-
inline PublicKeyImpl<Element> &operator=(PublicKeyImpl<Element> &&rhs)
Move Assignment Operator.
- Parameters
&rhs – PublicKeyImpl to copy from
-
inline const std::vector<Element> &GetPublicElements() const
Gets the computed public key
- Returns
the public key element.
-
inline void SetPublicElements(const std::vector<Element> &element)
Sets the public key vector of Element.
- Parameters
&element – is the public key Element vector to be copied.
-
inline void SetPublicElements(std::vector<Element> &&element)
Sets the public key vector of Element.
- Parameters
&&element – is the public key Element vector to be moved.
-
inline void SetPublicElementAtIndex(usint idx, const Element &element)
Sets the public key Element at index idx.
- Parameters
&element – is the public key Element to be copied.
-
inline void SetPublicElementAtIndex(usint idx, Element &&element)
Sets the public key Element at index idx.
- Parameters
&&element – is the public key Element to be moved.
-
inline bool operator==(const PublicKeyImpl &other) const
-
inline bool operator!=(const PublicKeyImpl &other) const
-
inline virtual std::string SerializedObjectName() const
Public Static Functions
-
static inline uint32_t SerializedVersion()