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