StormByte C++ Library: Crypto module 1.0.0
StormByte-Crypto is a StormByte library module for handling cryptographic operations
|
An abstract base class for encryption and decryption operations. More...
#include <crypter.hxx>
Public Member Functions | |
Crypter () noexcept=default | |
Default constructor for the Crypter class. | |
Crypter (const Crypter &crypter)=default | |
Copy constructor for the Crypter class. | |
Crypter (Crypter &&crypter) noexcept=default | |
Move constructor for the Crypter class. | |
virtual | ~Crypter () noexcept=default |
Virtual destructor for the Crypter class. | |
Crypter & | operator= (const Crypter &crypter)=default |
Copy assignment operator for the Crypter class. | |
Crypter & | operator= (Crypter &&crypter) noexcept=default |
Move assignment operator for the Crypter class. | |
virtual Expected< std::string, Exception > | Encrypt (const std::string &input) const noexcept=0 |
Encrypts a string input. | |
virtual Expected< Buffer::Simple, Exception > | Encrypt (const Buffer::Simple &buffer) const noexcept=0 |
Encrypts a buffer. | |
virtual Buffer::Consumer | Encrypt (const Buffer::Consumer consumer) const noexcept=0 |
Encrypts data asynchronously using a Consumer/Producer model. | |
virtual Expected< std::string, Exception > | Decrypt (const std::string &input) const noexcept=0 |
Decrypts a string input. | |
virtual Expected< Buffer::Simple, Exception > | Decrypt (const Buffer::Simple &buffer) const noexcept=0 |
Decrypts a buffer. | |
virtual Buffer::Consumer | Decrypt (const Buffer::Consumer consumer) const noexcept=0 |
Decrypts data asynchronously using a Consumer/Producer model. | |
An abstract base class for encryption and decryption operations.
This class defines the interface for encrypting and decrypting data using various cryptographic algorithms.
|
default |
|
defaultnoexcept |
|
pure virtualnoexcept |
Decrypts data asynchronously using a Consumer/Producer model.
consumer | The Consumer buffer containing the encrypted data. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.
|
pure virtualnoexcept |
Decrypts a buffer.
buffer | The buffer to decrypt. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.
|
pure virtualnoexcept |
Decrypts a string input.
input | The string to decrypt. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.
|
pure virtualnoexcept |
Encrypts data asynchronously using a Consumer/Producer model.
consumer | The Consumer buffer containing the input data. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.
|
pure virtualnoexcept |
Encrypts a buffer.
buffer | The buffer to encrypt. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.
|
pure virtualnoexcept |
Encrypts a string input.
input | The string to encrypt. |
Implemented in StormByte::Crypto::Asymmetric, and StormByte::Crypto::Symmetric.