Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::ecc::detail::private_key_impl Class Reference

#include <_elliptic_impl_priv.hpp>

Collaboration diagram for fc::ecc::detail::private_key_impl:

Public Member Functions

 private_key_impl () BOOST_NOEXCEPT
 
 private_key_impl (const private_key_impl &cpy) BOOST_NOEXCEPT
 
private_key_imploperator= (const private_key_impl &pk) BOOST_NOEXCEPT
 
 private_key_impl () BOOST_NOEXCEPT
 
 private_key_impl (const private_key_impl &cpy) BOOST_NOEXCEPT
 
 private_key_impl (private_key_impl &&cpy) BOOST_NOEXCEPT
 
 ~private_key_impl () BOOST_NOEXCEPT
 
private_key_imploperator= (const private_key_impl &pk) BOOST_NOEXCEPT
 
private_key_imploperator= (private_key_impl &&pk) BOOST_NOEXCEPT
 

Public Attributes

private_key_secret _key
 
EC_KEY * _key = nullptr
 

Detailed Description

Definition at line 15 of file elliptic_openssl.cpp.

Constructor & Destructor Documentation

◆ private_key_impl() [1/5]

fc::ecc::detail::private_key_impl::private_key_impl ( )

Definition at line 13 of file elliptic_impl_priv.cpp.

14 {
15 _init_lib();
16 }
Here is the call graph for this function:

◆ private_key_impl() [2/5]

fc::ecc::detail::private_key_impl::private_key_impl ( const private_key_impl & cpy)

Definition at line 18 of file elliptic_impl_priv.cpp.

19 {
20 _init_lib();
21 this->_key = cpy._key;
22 }
Here is the call graph for this function:

◆ private_key_impl() [3/5]

fc::ecc::detail::private_key_impl::private_key_impl ( )
inline

Definition at line 18 of file elliptic_openssl.cpp.

18{}

◆ private_key_impl() [4/5]

fc::ecc::detail::private_key_impl::private_key_impl ( const private_key_impl & cpy)
inline

Definition at line 20 of file elliptic_openssl.cpp.

21 {
22 *this = cpy;
23 }

◆ private_key_impl() [5/5]

fc::ecc::detail::private_key_impl::private_key_impl ( private_key_impl && cpy)
inline

Definition at line 25 of file elliptic_openssl.cpp.

26 {
27 *this = cpy;
28 }

◆ ~private_key_impl()

fc::ecc::detail::private_key_impl::~private_key_impl ( )
inline

Definition at line 30 of file elliptic_openssl.cpp.

31 {
32 free_key();
33 }

Member Function Documentation

◆ operator=() [1/3]

private_key_impl & fc::ecc::detail::private_key_impl::operator= ( const private_key_impl & pk)

Definition at line 24 of file elliptic_impl_priv.cpp.

25 {
26 _key = pk._key;
27 return *this;
28 }

◆ operator=() [2/3]

private_key_impl & fc::ecc::detail::private_key_impl::operator= ( const private_key_impl & pk)
inline

Definition at line 35 of file elliptic_openssl.cpp.

36 {
37 if (pk._key == nullptr)
38 {
39 free_key();
40 } else if ( _key == nullptr ) {
41 _key = EC_KEY_dup( pk._key );
42 } else {
43 EC_KEY_copy( _key, pk._key );
44 }
45 return *this;
46 }

◆ operator=() [3/3]

private_key_impl & fc::ecc::detail::private_key_impl::operator= ( private_key_impl && pk)
inline

Definition at line 48 of file elliptic_openssl.cpp.

49 {
50 if ( this != &pk ) {
51 free_key();
52 _key = pk._key;
53 pk._key = nullptr;
54 }
55 return *this;
56 }

Member Data Documentation

◆ _key [1/2]

private_key_secret fc::ecc::detail::private_key_impl::_key

Definition at line 22 of file _elliptic_impl_priv.hpp.

◆ _key [2/2]

EC_KEY* fc::ecc::detail::private_key_impl::_key = nullptr

Definition at line 58 of file elliptic_openssl.cpp.


The documentation for this class was generated from the following files: