3#include <StormByte/crypto/keypair/generic.hxx>
9namespace StormByte::Crypto::KeyPair {
21 inline ECDH(
const std::string& public_key, std::optional<std::string> private_key = std::nullopt):
53 ECDH& operator=(
ECDH&& other) noexcept = default;
59 PointerType Clone() const noexcept
override {
60 return std::make_shared<ECDH>(*
this);
67 PointerType
Move() noexcept
override {
68 return std::make_shared<ECDH>(std::move(*
this));
76 static PointerType
Generate(
unsigned short key_size = 2048) noexcept;
A ECDH keypair class.
Definition ecdh.hxx:14
~ECDH() noexcept=default
Virtual destructor.
ECDH(ECDH &&other) noexcept=default
Move constructor.
ECDH(const ECDH &other)=default
Copy constructor.
ECDH(const std::string &public_key, std::optional< std::string > private_key=std::nullopt)
Constructor.
Definition ecdh.hxx:21
static PointerType Generate(unsigned short key_size=2048) noexcept
Generate a new ECDH keypair.
PointerType Move() noexcept override
Move the ECDH keypair.
Definition ecdh.hxx:67
A generic class.
Definition generic.hxx:34