A generic secret class.
More...
#include <ecdh.hxx>
|
| | ECDH (KeyPair::Generic::PointerType keypair) |
| | Constructor.
|
| |
| | ECDH (const KeyPair::ECDH &keypair) |
| | Constructor.
|
| |
| | ECDH (KeyPair::ECDH &&keypair) |
| | Constructor.
|
| |
| | ECDH (const ECDH &other)=default |
| | Copy constructor.
|
| |
| | ECDH (ECDH &&other) noexcept=default |
| | Move constructor.
|
| |
|
| ~ECDH () noexcept=default |
| | Virtual destructor.
|
| |
| ECDH & | operator= (const ECDH &other)=default |
| | Copy assignment operator.
|
| |
| ECDH & | operator= (ECDH &&other) noexcept=default |
| | Move assignment operator.
|
| |
| PointerType | Clone () const noexcept override |
| | Clone the ECDH secret.
|
| |
| PointerType | Move () noexcept override |
| | Move the ECDH secret.
|
| |
| | Generic (const Generic &other)=default |
| | Copy constructor.
|
| |
| | Generic (Generic &&other) noexcept=default |
| | Move constructor.
|
| |
|
virtual | ~Generic () noexcept=default |
| | Virtual destructor.
|
| |
| Generic & | operator= (const Generic &other)=default |
| | Copy assignment operator.
|
| |
| Generic & | operator= (Generic &&other) noexcept=default |
| | Move assignment operator.
|
| |
| KeyPair::Generic::PointerType | KeyPair () const noexcept |
| | Gets the keypair used for secret sharing.
|
| |
| enum Type | Type () const noexcept |
| | Gets the type of the secret share generator used for secret sharing.
|
| |
| std::optional< std::string > | Share (const std::string &peerPublicKey) const noexcept |
| | Shares the secret with a peer using their public key.
|
| |
◆ ECDH() [1/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
KeyPair::Generic::PointerType |
keypair | ) |
|
|
inline |
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ ECDH() [2/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
const KeyPair::ECDH & |
keypair | ) |
|
|
inline |
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ ECDH() [3/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
KeyPair::ECDH && |
keypair | ) |
|
|
inline |
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ ECDH() [4/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
const ECDH & |
other | ) |
|
|
default |
Copy constructor.
- Parameters
-
| other | The other ECDH secret to copy from. |
◆ ECDH() [5/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
ECDH && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
| other | The other ECDH secret to move from. |
◆ Clone()
| PointerType StormByte::Crypto::Secret::ECDH::Clone |
( |
| ) |
const |
|
inlineoverridenoexcept |
Clone the ECDH secret.
- Returns
- A pointer to the cloned ECDH secret.
◆ Move()
| PointerType StormByte::Crypto::Secret::ECDH::Move |
( |
| ) |
|
|
inlineoverridenoexcept |
Move the ECDH secret.
- Returns
- A pointer to the moved ECDH secret.
◆ operator=() [1/2]
| ECDH & StormByte::Crypto::Secret::ECDH::operator= |
( |
const ECDH & |
other | ) |
|
|
default |
Copy assignment operator.
- Parameters
-
| other | The other ECDH secret to copy from. |
- Returns
- Reference to this ECDH secret.
◆ operator=() [2/2]
| ECDH & StormByte::Crypto::Secret::ECDH::operator= |
( |
ECDH && |
other | ) |
|
|
defaultnoexcept |
Move assignment operator.
- Parameters
-
| other | The other ECDH secret to move from. |
- Returns
- Reference to this ECDH secret.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Crypto/StormByte-Crypto/lib/public/StormByte/crypto/secret/ecdh.hxx