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:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"4" [label="lbcrypto::Serializable" tooltip="lbcrypto::Serializable"]
"1" [label="lbcrypto::PrivateKeyImpl< Element >" tooltip="lbcrypto::PrivateKeyImpl< Element >" fillcolor="#BFBFBF"]
"3" [label="lbcrypto::CryptoObject< Element >" tooltip="lbcrypto::CryptoObject< Element >"]
"2" [label="lbcrypto::Key< Element >" tooltip="lbcrypto::Key< Element >"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
"2" -> "3" [dir=forward tooltip="public-inheritance"]
"2" -> "4" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-060399eb4f49ea7b55b7ee413e2deefbf79ca1b3.png)
Collaboration diagram for lbcrypto::PrivateKeyImpl:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"4" [label="lbcrypto::Serializable" tooltip="lbcrypto::Serializable"]
"1" [label="lbcrypto::PrivateKeyImpl< Element >" tooltip="lbcrypto::PrivateKeyImpl< Element >" fillcolor="#BFBFBF"]
"3" [label="lbcrypto::CryptoObject< Element >" tooltip="lbcrypto::CryptoObject< Element >"]
"2" [label="lbcrypto::Key< Element >" tooltip="lbcrypto::Key< Element >"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
"2" -> "3" [dir=forward tooltip="public-inheritance"]
"2" -> "4" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-060399eb4f49ea7b55b7ee413e2deefbf79ca1b3.png)
Class for private key.
- Template Parameters
Element – a ring element.
Public Functions
-
PrivateKeyImpl() = default
Construct in context
-
inline explicit PrivateKeyImpl(const CryptoContext<Element> &cc)
-
inline PrivateKeyImpl(const PrivateKeyImpl<Element> &rhs)
Copy constructor
- Parameters
&rhs – the PrivateKeyImpl to copy from
-
inline PrivateKeyImpl(PrivateKeyImpl<Element> &&rhs) noexcept
Move constructor
- Parameters
&rhs – the PrivateKeyImpl to move from
-
inline operator bool() const
-
inline PrivateKeyImpl<Element> &operator=(const PrivateKeyImpl<Element> &rhs)
Assignment Operator.
- Parameters
&rhs – PrivateKeyto assign from.
- Returns
the resulting PrivateKeyImpl
-
inline PrivateKeyImpl<Element> &operator=(PrivateKeyImpl<Element> &&rhs) noexcept
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 override
Public Static Functions
-
static inline uint32_t SerializedVersion()