Template Class PrivateKeyImpl
Defined in File privatekey.h
Inheritance Relationships
Base Type
public lbcrypto::Key< Element >
(Template Class Key)
Template Parameter Order
class Element
Class Documentation
-
template<class Element>
class lbcrypto::PrivateKeyImpl : public lbcrypto::Key<Element> Inheritence diagram for lbcrypto::PrivateKeyImpl:
Collaboration diagram for lbcrypto::PrivateKeyImpl:
Class for private key.
- Template Parameters
Element – a ring element.
Public Functions
-
inline explicit PrivateKeyImpl(CryptoContext<Element> cc = 0)
Construct in context
-
inline explicit PrivateKeyImpl(const PrivateKeyImpl<Element> &rhs)
Copy constructor
- Parameters
&rhs – the PrivateKeyImpl to copy from
-
inline explicit PrivateKeyImpl(PrivateKeyImpl<Element> &&rhs)
Move constructor
- Parameters
&rhs – the PrivateKeyImpl to move from
-
inline operator bool() const
-
inline const PrivateKeyImpl<Element> &operator=(const PrivateKeyImpl<Element> &rhs)
Assignment Operator.
- Parameters
&rhs – PrivateKeyto assign from.
- Returns
the resulting PrivateKeyImpl
-
inline const PrivateKeyImpl<Element> &operator=(PrivateKeyImpl<Element> &&rhs)
Move Assignment Operator.
- Parameters
&rhs – PrivateKeyImpl to assign from.
- Returns
the resulting PrivateKeyImpl
-
inline const Element &GetPrivateElement() const
Implementation of the Get accessor for private element.
- Returns
the private element.
-
inline bool operator==(const PrivateKeyImpl &other) const
-
inline bool operator!=(const PrivateKeyImpl &other) const
-
inline virtual std::string SerializedObjectName() const
Public Static Functions
-
static inline uint32_t SerializedVersion()