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