116 RSA& operator=(const
RSA& other) = default;
123 RSA& operator=(
RSA&& other) noexcept = default;
131 return RSA::MakePointer<RSA>(*
this);
139 return RSA::MakePointer<RSA>(std::move(*
this));
149 bool DoSign(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
165 bool DoVerify(std::span<const std::byte> input, std::string_view signature)
const noexcept override;
RSA keypair.
Definition rsa.hxx:69
Abstract signer.
Definition generic.hxx:83
RSA signer.
Definition rsa.hxx:67
RSA(KeyPair::Generic::PointerType keypair)
Construct from a keypair pointer.
Definition rsa.hxx:77
~RSA() noexcept
Destructor.
RSA(KeyPair::RSA &&keypair)
Construct by moving an RSA keypair.
Definition rsa.hxx:91
RSA(const KeyPair::RSA &keypair)
Construct by cloning an RSA keypair.
Definition rsa.hxx:84
PointerType Move() noexcept override
Move this signer into a new instance.
Definition rsa.hxx:138
RSA(RSA &&other) noexcept=default
Move constructor.
RSA(const RSA &other)=default
Copy constructor.
ReadMode
How a source buffer is consumed.
Definition typedefs.hxx:57
Root namespace of the StormByte suite.
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53