X25519 shared-secret derivation. More...
#include <StormByte/crypto/secret/x25519.hxx>


Public Member Functions | |
| Generic::PointerType | Clone () const override |
| Clone this object. | |
| Generic::PointerType | Move () override |
| Move this object into a new instance. | |
| StormByte::Safe::Optional< Secure::Password > | Share (const StormByte::Safe::String &peerPublicKey) const override |
| Derive a shared secret. | |
Construction | |
| X25519 (KeyPair::Generic::PointerType keypair) noexcept | |
| Construct from an X25519 keypair (needs private key). | |
| X25519 (const X25519 &other)=default | |
| Copy constructor. | |
| X25519 (X25519 &&other) noexcept=default | |
| Move constructor. | |
| ~X25519 () noexcept | |
| Destructor. | |
| X25519 & | operator= (const X25519 &other)=default |
| Copy assignment. | |
| X25519 & | operator= (X25519 &&other) noexcept=default |
| Move assignment. | |
| Public Member Functions inherited from StormByte::Crypto::Secret::Generic | |
| Type | Type () const noexcept |
| Algorithm of this instance. | |
| Generic (const Generic &other)=default | |
| Copy constructor. | |
| Generic (Generic &&other) noexcept=default | |
| Move constructor. | |
| virtual | ~Generic () noexcept |
| Destructor. | |
| Generic & | operator= (const Generic &other)=default |
| Copy assignment. | |
| Generic & | operator= (Generic &&other) noexcept=default |
| Move assignment. | |
| Public Member Functions inherited from StormByte::Safe::Clonable< Generic > | |
| constexpr | Clonable ()=default |
| constexpr Clonable & | operator= (const Clonable &)=default |
| virtual constexpr | ~Clonable () noexcept=default |
Static Public Member Functions | |
| static StormByte::Safe::Optional< Secure::Password > | DeriveSharedSecret (KeyPair::Generic::PointerType keypair, const StormByte::Safe::String &peerPublicKey) |
| Derive a shared secret without an instance. | |
| Static Public Member Functions inherited from StormByte::Safe::Clonable< Generic > | |
| static PointerType | MakePointer (Args &&... args) |
Additional Inherited Members | |
| Public Types inherited from StormByte::Safe::Clonable< Generic > | |
| typedef SmartPointer | PointerType |
| Protected Member Functions inherited from StormByte::Crypto::Secret::Generic | |
| Generic (enum Type type, KeyPair::Generic::PointerType keypair) noexcept | |
| Construct with algorithm and keypair. | |
| Protected Attributes inherited from StormByte::Crypto::Secret::Generic | |
| enum Type | m_type |
| Algorithm. | |
| KeyPair::Generic::PointerType | m_keypair |
| Local keypair (needs private key). | |
X25519 shared-secret derivation.
|
inlineexplicitnoexcept |
Construct from an X25519 keypair (needs private key).
| keypair | Keypair. |
|
default |
Copy constructor.
| other | Object to copy. |
|
defaultnoexcept |
Move constructor.
| other | Object to move. |
|
noexcept |
Destructor.
|
overridevirtual |
Clone this object.
Implements StormByte::Safe::Clonable< Generic >.
|
static |
Derive a shared secret without an instance.
| keypair | Local keypair (needs private key). |
| peerPublicKey | Peer public key as Base64, borrowed for this call. |
| StormByte::Exception | If Safe result storage cannot be created. |
|
overridevirtual |
Move this object into a new instance.
Implements StormByte::Safe::Clonable< Generic >.
Copy assignment.
| other | Object to copy. |
Move assignment.
| other | Object to move. |
|
overridevirtual |
Derive a shared secret.
| peerPublicKey | Peer public key as Base64, borrowed for this call. |
| StormByte::Exception | If Safe result storage cannot be created. |
Implements StormByte::Crypto::Secret::Generic.