Template Class PrivateKeyImpl

Inheritance Relationships

Base Type

Template Parameter Order

  1. 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"] }

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"] }

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

&rhsPrivateKeyImpl 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
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

Public Static Functions

static inline uint32_t SerializedVersion()