114 RSA& operator=(const
RSA& other) = default;
121 RSA& operator=(
RSA&& other) noexcept = default;
129 return RSA::MakePointer<RSA>(*
this);
137 return RSA::MakePointer<RSA>(std::move(*
this));
147 bool DoEncrypt(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
163 bool DoDecrypt(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
Keypair-based asymmetric crypter.
Definition generic.hxx:65
RSA crypter.
Definition rsa.hxx:65
~RSA() noexcept
Destructor.
RSA(const KeyPair::RSA &keypair)
Construct by cloning an RSA keypair.
Definition rsa.hxx:82
RSA(KeyPair::Generic::PointerType keypair)
Construct from a keypair pointer.
Definition rsa.hxx:75
RSA(const RSA &other)=default
Copy constructor.
RSA(RSA &&other) noexcept=default
Move constructor.
RSA(KeyPair::RSA &&keypair)
Construct by moving an RSA keypair.
Definition rsa.hxx:89
PointerType Move() noexcept override
Move this crypter into a new instance.
Definition rsa.hxx:136
RSA keypair.
Definition rsa.hxx:69
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