StormByte C++ Library: Crypto module 0.0.9999
StormByte-Crypto is a StormByte library module for handling cryptographic operations
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StormByte::Crypto::Hasher::Blake2b Class Referencefinal

A Blake2b hasher class. More...

#include <blake2b.hxx>

Inheritance diagram for StormByte::Crypto::Hasher::Blake2b:
Inheritance graph
[legend]
Collaboration diagram for StormByte::Crypto::Hasher::Blake2b:
Collaboration graph
[legend]

Public Member Functions

 Blake2b ()
 Constructor.
 
 Blake2b (const Blake2b &other)=default
 Copy constructor.
 
 Blake2b (Blake2b &&other) noexcept=default
 Move constructor.
 
 ~Blake2b () noexcept=default
 Virtual destructor.
 
Blake2boperator= (const Blake2b &other)=default
 Copy assignment operator.
 
Blake2boperator= (Blake2b &&other) noexcept=default
 Move assignment operator.
 
PointerType Clone () const noexcept override
 Clone the Blake2b hasher.
 
PointerType Move () noexcept override
 Move the Blake2b hasher.
 
- Public Member Functions inherited from StormByte::Crypto::Hasher::Generic
 Generic (const Generic &other)=default
 Copy constructor.
 
 Generic (Generic &&other) noexcept=default
 Move constructor.
 
virtual ~Generic () noexcept=default
 Virtual destructor.
 
Genericoperator= (const Generic &other)=default
 Copy assignment operator.
 
Genericoperator= (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.
 

Additional Inherited Members

- Protected Member Functions inherited from StormByte::Crypto::Hasher::Generic
 Generic (enum Type type)
 Constructor.
 
- Protected Attributes inherited from StormByte::Crypto::Hasher::Generic
enum Type m_type
 The type of hasher.
 

Detailed Description

A Blake2b hasher class.

Constructor & Destructor Documentation

◆ Blake2b() [1/3]

StormByte::Crypto::Hasher::Blake2b::Blake2b ( )
inline

Constructor.

Parameters
typeThe type of hasher.

◆ Blake2b() [2/3]

StormByte::Crypto::Hasher::Blake2b::Blake2b ( const Blake2b other)
default

Copy constructor.

Parameters
otherThe other Blake2b hasher to copy from.

◆ Blake2b() [3/3]

StormByte::Crypto::Hasher::Blake2b::Blake2b ( Blake2b &&  other)
defaultnoexcept

Move constructor.

Parameters
otherThe other Blake2b hasher to move from.

Member Function Documentation

◆ Clone()

PointerType StormByte::Crypto::Hasher::Blake2b::Clone ( ) const
inlineoverridenoexcept

Clone the Blake2b hasher.

Returns
A pointer to the cloned Blake2b hasher.

◆ Move()

PointerType StormByte::Crypto::Hasher::Blake2b::Move ( )
inlineoverridenoexcept

Move the Blake2b hasher.

Returns
A pointer to the moved Blake2b hasher.

◆ operator=() [1/2]

Blake2b & StormByte::Crypto::Hasher::Blake2b::operator= ( Blake2b &&  other)
defaultnoexcept

Move assignment operator.

Parameters
otherThe other Blake2b hasher to move from.
Returns
Reference to this Blake2b hasher.

◆ operator=() [2/2]

Blake2b & StormByte::Crypto::Hasher::Blake2b::operator= ( const Blake2b other)
default

Copy assignment operator.

Parameters
otherThe other Blake2b hasher to copy from.
Returns
Reference to this Blake2b hasher.

The documentation for this class was generated from the following file: