|
StormByte C++ Library: Crypto module 0.0.9999
StormByte-Crypto is a StormByte library module for handling cryptographic operations
|
A generic signer class. More...
#include <generic.hxx>


Public Member Functions | |
| Generic (const Generic &other)=default | |
| Copy constructor. | |
| Generic (Generic &&other) noexcept=default | |
| Move constructor. | |
| virtual | ~Generic () noexcept=default |
| Virtual destructor. | |
| Generic & | operator= (const Generic &other)=default |
| Copy assignment operator. | |
| Generic & | operator= (Generic &&other) noexcept=default |
| Move assignment operator. | |
| KeyPair::Generic::PointerType | KeyPair () const noexcept |
| Gets the keypair used for asymmetric encryption. | |
| bool | Sign (std::span< const std::byte > input, Buffer::WriteOnly &output) const noexcept |
| Sign data from input span to output buffer. | |
| bool | Sign (const Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| Sign data from input buffer to output buffer. | |
| bool | Sign (Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| Sign data from input buffer to output buffer, moving the input data. | |
| Buffer::Consumer | Sign (Buffer::Consumer consumer, ReadMode mode=ReadMode::Move) const noexcept |
| Sign data from a Consumer buffer. | |
| bool | Verify (std::span< const std::byte > input, const std::string &signature) const noexcept |
| Verify data from input span to output buffer. | |
| bool | Verify (const Buffer::ReadOnly &input, const std::string &signature) const noexcept |
| Verify data from input buffer to output buffer. | |
| bool | Verify (Buffer::ReadOnly &input, const std::string &signature) const noexcept |
| Verify data from input buffer to output buffer, moving the input data. | |
| bool | Verify (Buffer::Consumer consumer, const std::string &signature, ReadMode mode=ReadMode::Move) const noexcept |
| Verify data from a Consumer buffer. | |
Protected Member Functions | |
| Generic (enum Type type, KeyPair::Generic::PointerType keypair) | |
| Constructor. | |
| Generic (enum Type type, const KeyPair::Generic &keypair) | |
| Constructor. | |
| Generic (enum Type type, KeyPair::Generic &&keypair) | |
| Constructor. | |
Protected Attributes | |
| enum Type | m_type |
| The type of signer. | |
| KeyPair::Generic::PointerType | m_keypair |
| The password used for asymmetric encryption. | |
A generic signer class.
|
default |
Copy constructor.
| other | The other Generic signer to copy from. |
|
defaultnoexcept |
Move constructor.
| other | The other Generic signer to move from. |
|
inlineprotected |
Constructor.
| type | The type of signer. |
| keypair | The keypair used for asymmetric encryption. |
|
inlineprotected |
Constructor.
| type | The type of signer. |
| keypair | The keypair used for asymmetric encryption. |
|
inlineprotected |
Constructor.
| type | The type of signer. |
| keypair | The keypair used for asymmetric encryption. |
|
inlinenoexcept |
Gets the keypair used for asymmetric encryption.
|
inlinenoexcept |
Sign data from a Consumer buffer.
| consumer | The Consumer buffer to sign. |
| mode | The read mode indicating copy or move. |
|
inlinenoexcept |
Sign data from input buffer to output buffer, moving the input data.
| input | The input buffer to sign. |
| output | The output buffer to write the signed data to. |
|
inlinenoexcept |
Sign data from input buffer to output buffer.
| input | The input buffer to sign. |
| output | The output buffer to write the signed data to. |
|
inlinenoexcept |
Sign data from input span to output buffer.
| input | The input data span to sign. |
| output | The output buffer to write the signed data to. |
|
inlinenoexcept |
Verify data from a Consumer buffer.
| consumer | The Consumer buffer to verify. |
| signature | The signature to verify against. |
| mode | The read mode indicating copy or move. |
|
inlinenoexcept |
Verify data from input buffer to output buffer, moving the input data.
| input | The input buffer to verify. |
| signature | The signature to verify against. |
|
inlinenoexcept |
Verify data from input buffer to output buffer.
| input | The input buffer to verify. |
| signature | The signature to verify against. |
|
inlinenoexcept |
Verify data from input span to output buffer.
| input | The input buffer to verify. |
| signature | The signature to verify against. |