|
| KeyPair::Generic::PointerType | KeyPair () const noexcept |
| | Keypair used to sign and verify.
|
| | Generic (const Generic &other)=default |
| | Copy constructor.
|
| | Generic (Generic &&other) noexcept=default |
| | Move constructor.
|
| virtual | ~Generic () noexcept |
| | Destructor.
|
| Generic & | operator= (const Generic &other)=default |
| | Copy assignment.
|
| Generic & | operator= (Generic &&other) noexcept=default |
| | Move assignment.
|
| bool | Sign (std::span< const std::byte > input, Buffer::WriteOnly &output) const noexcept |
| | Sign a byte span.
|
| template<StormByte::Type::ByteInputRange Range> |
| bool | Sign (const Range &input, Buffer::WriteOnly &output) const |
| | Sign an input range of byte-convertible values.
|
| bool | Sign (const Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| | Sign a ReadOnly buffer (copy).
|
| bool | Sign (Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| | Sign a ReadOnly buffer (move).
|
| Buffer::Consumer | Sign (Buffer::Consumer consumer, ReadMode mode=ReadMode::Move) const noexcept |
| | Sign a Consumer.
|
| bool | Verify (std::span< const std::byte > input, std::string_view signature) const noexcept |
| | Verify a byte span against a signature.
|
| template<StormByte::Type::ByteInputRange Range> |
| bool | Verify (const Range &input, std::string_view signature) const |
| | Verify an input range of byte-convertible values against a signature.
|
| bool | Verify (const Buffer::ReadOnly &input, std::string_view signature) const noexcept |
| | Verify a ReadOnly buffer (copy).
|
| bool | Verify (Buffer::ReadOnly &input, std::string_view signature) const noexcept |
| | Verify a ReadOnly buffer (move).
|
| bool | Verify (Buffer::Consumer consumer, std::string_view signature, ReadMode mode=ReadMode::Move) const noexcept |
| | Verify a Consumer.
|
| constexpr | Clonable ()=default |
| constexpr Clonable & | operator= (const Clonable &)=default |
| virtual constexpr | ~Clonable () noexcept=default |
| virtual PointerType | Clone () const =0 |
| virtual PointerType | Move ()=0 |
Abstract signer.
Concrete algorithms derive from this.
- Note
- MaybeSafe requires ABI-compatible toolchains and all provider modules to remain loaded while objects, virtual functions or ownership callbacks can be used. The algorithm enum is Safe; the keypair uses Safe shared ownership and must satisfy its provider's MaybeSafe contract. Inline construction and special members delegate to Safe ownership or exported keypair operations rather than owning local heap storage. Destruction is exported, and owning Clone/Move implementations must allocate and bind creator/deleter callbacks in their provider module through Safe ownership operations. Derived providers must keep every field Safe or satisfy its MaybeSafe requirements, and preserve provider-owned allocation, copying, assignment, movement and destruction.