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

A SHA512 hasher class. More...

#include <sha512.hxx>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ SHA512() [1/3]

StormByte::Crypto::Hasher::SHA512::SHA512 ( )
inline

Constructor.

Parameters
typeThe type of hasher.

◆ SHA512() [2/3]

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

Copy constructor.

Parameters
otherThe other SHA512 hasher to copy from.

◆ SHA512() [3/3]

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

Move constructor.

Parameters
otherThe other SHA512 hasher to move from.

Member Function Documentation

◆ Clone()

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

Clone the SHA512 hasher.

Returns
A pointer to the cloned SHA512 hasher.

◆ Move()

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

Move the SHA512 hasher.

Returns
A pointer to the moved SHA512 hasher.

◆ operator=() [1/2]

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

Copy assignment operator.

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

◆ operator=() [2/2]

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

Move assignment operator.

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

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