80 inline ECDH(std::string_view publicKey, std::optional<Secure::Password> privateKey = std::nullopt):
120 return MakePointer<ECDH>(*
this);
128 return MakePointer<ECDH>(std::move(*
this));
ECDH keypair.
Definition ecdh.hxx:69
~ECDH() noexcept
Destructor.
PointerType Move() override
Move this keypair into a new instance.
Definition ecdh.hxx:127
ECDH(ECDH &&other) noexcept=default
Move constructor.
ECDH(std::string_view publicKey, std::optional< Secure::Password > privateKey=std::nullopt)
Construct from public material and optional private Password.
Definition ecdh.hxx:80
static PointerType Generate(unsigned short bits) noexcept
Generate an ECDH keypair.
ECDH(const ECDH &other)=default
Copy constructor.
Abstract keypair.
Definition generic.hxx:99
Root namespace of the StormByte suite.
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53