A generic secret class.
More...
#include <x25519.hxx>
|
| | X25519 (KeyPair::Generic::PointerType keypair) |
| | Constructor.
|
| |
| | X25519 (const KeyPair::X25519 &keypair) |
| | Constructor.
|
| |
| | X25519 (KeyPair::X25519 &&keypair) |
| | Constructor.
|
| |
| | X25519 (const X25519 &other)=default |
| | Copy constructor.
|
| |
| | X25519 (X25519 &&other) noexcept=default |
| | Move constructor.
|
| |
|
| ~X25519 () noexcept=default |
| | Virtual destructor.
|
| |
| X25519 & | operator= (const X25519 &other)=default |
| | Copy assignment operator.
|
| |
| X25519 & | operator= (X25519 &&other) noexcept=default |
| | Move assignment operator.
|
| |
| PointerType | Clone () const noexcept override |
| | Clone the X25519 secret.
|
| |
| PointerType | Move () noexcept override |
| | Move the X25519 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.
|
| |
◆ X25519() [1/5]
| StormByte::Crypto::Secret::X25519::X25519 |
( |
KeyPair::Generic::PointerType |
keypair | ) |
|
|
inline |
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ X25519() [2/5]
| StormByte::Crypto::Secret::X25519::X25519 |
( |
const KeyPair::X25519 & |
keypair | ) |
|
|
inline |
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ X25519() [3/5]
Constructor.
- Parameters
-
| keypair | The keypair used for secret sharing. |
◆ X25519() [4/5]
| StormByte::Crypto::Secret::X25519::X25519 |
( |
const X25519 & |
other | ) |
|
|
default |
Copy constructor.
- Parameters
-
| other | The other X25519 secret to copy from. |
◆ X25519() [5/5]
| StormByte::Crypto::Secret::X25519::X25519 |
( |
X25519 && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
| other | The other X25519 secret to move from. |
◆ Clone()
| PointerType StormByte::Crypto::Secret::X25519::Clone |
( |
| ) |
const |
|
inlineoverridenoexcept |
Clone the X25519 secret.
- Returns
- A pointer to the cloned X25519 secret.
◆ Move()
| PointerType StormByte::Crypto::Secret::X25519::Move |
( |
| ) |
|
|
inlineoverridenoexcept |
Move the X25519 secret.
- Returns
- A pointer to the moved X25519 secret.
◆ operator=() [1/2]
| X25519 & StormByte::Crypto::Secret::X25519::operator= |
( |
const X25519 & |
other | ) |
|
|
default |
Copy assignment operator.
- Parameters
-
| other | The other X25519 secret to copy from. |
- Returns
- Reference to this X25519 secret.
◆ operator=() [2/2]
| X25519 & StormByte::Crypto::Secret::X25519::operator= |
( |
X25519 && |
other | ) |
|
|
defaultnoexcept |
Move assignment operator.
- Parameters
-
| other | The other X25519 secret to move from. |
- Returns
- Reference to this X25519 secret.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Crypto/StormByte-Crypto/lib/public/StormByte/crypto/secret/x25519.hxx