Abstract signer. More...
#include <StormByte/crypto/signer/generic.hxx>


Public Member Functions | |
| KeyPair::Generic::PointerType | KeyPair () const noexcept |
| Keypair used to sign and verify. | |
Construction | |
| 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. | |
Sign | |
| 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. | |
Verify | |
| 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. | |
Public Member Functions inherited from StormByte::Safe::Clonable< Generic > | |
| constexpr | Clonable ()=default |
| constexpr | Clonable (const Clonable &)=default |
| constexpr | Clonable (Clonable &&) noexcept=default |
| constexpr Clonable & | operator= (const Clonable &)=default |
| constexpr Clonable & | operator= (Clonable &&) noexcept=default |
| virtual constexpr | ~Clonable () noexcept=default |
| virtual PointerType | Clone () const =0 |
| virtual PointerType | Move ()=0 |
Protected Member Functions | |
| Generic (enum Type type, KeyPair::Generic::PointerType keypair) | |
| Construct from a keypair pointer. | |
| Generic (enum Type type, const KeyPair::Generic &keypair) | |
| Construct by cloning a keypair. | |
| Generic (enum Type type, KeyPair::Generic &&keypair) | |
| Construct by moving a keypair. | |
Protected Attributes | |
| enum Type | m_type |
| Algorithm. | |
| KeyPair::Generic::PointerType | m_keypair |
| Keypair. | |
Additional Inherited Members | |
Public Types inherited from StormByte::Safe::Clonable< Generic > | |
| typedef SmartPointer | PointerType |
Static Public Member Functions inherited from StormByte::Safe::Clonable< Generic > | |
| static PointerType | MakePointer (Args &&... args) |
Abstract signer.
Concrete algorithms derive from this.
Copy constructor.
| other | Signer to copy. |
|
defaultnoexcept |
Move constructor.
| other | Signer to move. |
|
virtualnoexcept |
Destructor.
|
inlineprotected |
Construct from a keypair pointer.
| type | Algorithm. |
| keypair | Keypair. |
|
inlineprotected |
Construct by cloning a keypair.
| type | Algorithm. |
| keypair | Keypair. |
|
inlineprotected |
Construct by moving a keypair.
| type | Algorithm. |
| keypair | Keypair. |
|
inlinenoexcept |
Keypair used to sign and verify.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Sign a Consumer.
| consumer | Input consumer. |
| mode | Copy or move. |
|
inlinenoexcept |
Sign a ReadOnly buffer (move).
| input | Input buffer. |
| output | Destination buffer. |
|
inlinenoexcept |
Sign a ReadOnly buffer (copy).
| input | Input buffer. |
| output | Destination buffer. |
|
inline |
Sign an input range of byte-convertible values.
| Range | Input range type. |
| input | Input values. |
| output | Destination buffer. |
|
inlinenoexcept |
Sign a byte span.
| input | Input bytes. |
| output | Destination buffer. |
|
inlinenoexcept |
Verify a Consumer.
| consumer | Input consumer. |
| signature | Signature. Accepts String and std::string via string_view. |
| mode | Copy or move. |
|
inlinenoexcept |
Verify a ReadOnly buffer (move).
| input | Input buffer. |
| signature | Signature. Accepts String and std::string via string_view. |
|
inlinenoexcept |
Verify a ReadOnly buffer (copy).
| input | Input buffer. |
| signature | Signature. Accepts String and std::string via string_view. |
|
inline |
Verify an input range of byte-convertible values against a signature.
| Range | Input range type. |
| input | Input values. |
| signature | Signature. Accepts String and std::string via string_view. |
|
inlinenoexcept |
Verify a byte span against a signature.
| input | Input bytes. |
| signature | Signature. Accepts String and std::string via string_view. |
|
protected |
Keypair.