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::Blake2s Class Referencefinal

A Blake2s hasher class. More...

#include <blake2s.hxx>

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

Public Member Functions

 Blake2s ()
 Constructor.
 
 Blake2s (const Blake2s &other)=default
 Copy constructor.
 
 Blake2s (Blake2s &&other) noexcept=default
 Move constructor.
 
 ~Blake2s () noexcept=default
 Virtual destructor.
 
Blake2soperator= (const Blake2s &other)=default
 Copy assignment operator.
 
Blake2soperator= (Blake2s &&other) noexcept=default
 Move assignment operator.
 
PointerType Clone () const noexcept override
 Clone the Blake2s hasher.
 
PointerType Move () noexcept override
 Move the Blake2s 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 Blake2s hasher class.

Constructor & Destructor Documentation

◆ Blake2s() [1/3]

StormByte::Crypto::Hasher::Blake2s::Blake2s ( )
inline

Constructor.

Parameters
typeThe type of hasher.

◆ Blake2s() [2/3]

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

Copy constructor.

Parameters
otherThe other Blake2s hasher to copy from.

◆ Blake2s() [3/3]

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

Move constructor.

Parameters
otherThe other Blake2s hasher to move from.

Member Function Documentation

◆ Clone()

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

Clone the Blake2s hasher.

Returns
A pointer to the cloned Blake2s hasher.

◆ Move()

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

Move the Blake2s hasher.

Returns
A pointer to the moved Blake2s hasher.

◆ operator=() [1/2]

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

Move assignment operator.

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

◆ operator=() [2/2]

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

Copy assignment operator.

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

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