A SHA256 hasher class.
More...
#include <sha256.hxx>
|
| | SHA256 () |
| | Constructor.
|
| |
| | SHA256 (const SHA256 &other)=default |
| | Copy constructor.
|
| |
| | SHA256 (SHA256 &&other) noexcept=default |
| | Move constructor.
|
| |
|
virtual | ~SHA256 () noexcept=default |
| | Virtual destructor.
|
| |
| SHA256 & | operator= (const SHA256 &other)=default |
| | Copy assignment operator.
|
| |
| SHA256 & | operator= (SHA256 &&other) noexcept=default |
| | Move assignment operator.
|
| |
| PointerType | Clone () const noexcept override |
| | Clone the SHA256 hasher.
|
| |
| PointerType | Move () noexcept override |
| |
| | 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.
|
| |
| bool | Hash (std::span< const std::byte > input, Buffer::WriteOnly &output) const noexcept |
| | Hash data from input buffer to output buffer.
|
| |
| bool | Hash (const Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| | Hash data from input buffer to output buffer.
|
| |
| bool | Hash (Buffer::ReadOnly &input, Buffer::WriteOnly &output) const noexcept |
| | Hash data from input buffer to output buffer, moving the input data.
|
| |
| Buffer::Consumer | Hash (Buffer::Consumer consumer, ReadMode mode=ReadMode::Move) const noexcept |
| | Hash data from a Consumer buffer.
|
| |
| enum Type | Type () const noexcept |
| | Gets the type of hasher.
|
| |
◆ SHA256() [1/3]
| StormByte::Crypto::Hasher::SHA256::SHA256 |
( |
| ) |
|
|
inline |
◆ SHA256() [2/3]
| StormByte::Crypto::Hasher::SHA256::SHA256 |
( |
const SHA256 & |
other | ) |
|
|
default |
Copy constructor.
- Parameters
-
| other | The other SHA256 hasher to copy from. |
◆ SHA256() [3/3]
| StormByte::Crypto::Hasher::SHA256::SHA256 |
( |
SHA256 && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
| other | The other SHA256 hasher to move from. |
◆ Clone()
| PointerType StormByte::Crypto::Hasher::SHA256::Clone |
( |
| ) |
const |
|
inlineoverridenoexcept |
Clone the SHA256 hasher.
- Returns
- A pointer to the cloned SHA256 hasher.
◆ Move()
| PointerType StormByte::Crypto::Hasher::SHA256::Move |
( |
| ) |
|
|
inlineoverridenoexcept |
@brieg Move the SHA256 hasher.
- Returns
- A pointer to the moved SHA256 hasher.
◆ operator=() [1/2]
| SHA256 & StormByte::Crypto::Hasher::SHA256::operator= |
( |
const SHA256 & |
other | ) |
|
|
default |
Copy assignment operator.
- Parameters
-
| other | The other SHA256 hasher to copy from. |
- Returns
- Reference to this SHA256 hasher.
◆ operator=() [2/2]
| SHA256 & StormByte::Crypto::Hasher::SHA256::operator= |
( |
SHA256 && |
other | ) |
|
|
defaultnoexcept |
Move assignment operator.
- Parameters
-
| other | The other SHA256 hasher to move from. |
- Returns
- Reference to this SHA256 hasher.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Crypto/StormByte-Crypto/lib/public/StormByte/crypto/hasher/sha256.hxx