15 class STORMBYTE_CRYPTO_PUBLIC
RSA final:
public Generic {
22 inline RSA(KeyPair::Generic::PointerType keypair):
63 RSA& operator=(const
RSA& other) = default;
70 RSA& operator=(
RSA&& other) noexcept = default;
76 PointerType Clone() const noexcept
override {
77 return std::make_shared<RSA>(*
this);
84 PointerType
Move() noexcept
override {
85 return std::make_shared<RSA>(std::move(*
this));
96 bool DoSign(std::span<const std::byte> input, Buffer::WriteOnly& output)
const noexcept override;
104 Buffer::Consumer DoSign(Buffer::Consumer consumer, ReadMode mode)
const noexcept override;
112 bool DoVerify(std::span<const std::byte> input,
const std::string& signature)
const noexcept override;
120 bool DoVerify(Buffer::Consumer consumer,
const std::string& signature, ReadMode mode)
const noexcept override;