ECDH shared-secret derivation.
More...
#include <StormByte/crypto/secret/ecdh.hxx>
ECDH shared-secret derivation.
- Note
- MaybeSafe inherits all provider requirements of StormByte::Crypto::Secret::Generic. The added arithmetic curve-size field is Safe; exported Clone/Move preserve it and bind ownership callbacks in Crypto.
◆ ECDH() [1/5]
Construct from a keypair pointer.
- Parameters
-
◆ ECDH() [2/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
const KeyPair::ECDH & | keypair, |
|
|
unsigned short | bits = 256 ) |
|
inlineexplicit |
Construct by cloning an ECDH keypair.
- Parameters
-
| keypair | Keypair. |
| bits | Curve size in bits. |
◆ ECDH() [3/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
KeyPair::ECDH && | keypair, |
|
|
unsigned short | bits = 256 ) |
|
inlineexplicit |
Construct by moving an ECDH keypair.
- Parameters
-
| keypair | Keypair. |
| bits | Curve size in bits. |
◆ ECDH() [4/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
const ECDH & | other | ) |
|
|
default |
Copy constructor.
- Parameters
-
◆ ECDH() [5/5]
| StormByte::Crypto::Secret::ECDH::ECDH |
( |
ECDH && | other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~ECDH()
| StormByte::Crypto::Secret::ECDH::~ECDH |
( |
| ) |
|
|
noexcept |
◆ Clone()
| PointerType StormByte::Crypto::Secret::ECDH::Clone |
( |
| ) |
const |
|
overridevirtual |
◆ Move()
◆ operator=() [1/2]
| ECDH & StormByte::Crypto::Secret::ECDH::operator= |
( |
const ECDH & | other | ) |
|
|
default |
Copy assignment.
- Parameters
-
- Returns
- Reference to this object.
◆ operator=() [2/2]
| ECDH & StormByte::Crypto::Secret::ECDH::operator= |
( |
ECDH && | other | ) |
|
|
defaultnoexcept |
Move assignment.
- Parameters
-
- Returns
- Reference to this object.
◆ Share()
Derive a shared secret.
- Parameters
-
| peerPublicKey | Peer public key as Base64, borrowed for this call. |
- Returns
- Password on success, or empty.
- Exceptions
-
Implements StormByte::Crypto::Secret::Generic.
The documentation for this class was generated from the following file:
- lib/public/StormByte/crypto/secret/ecdh.hxx