Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::SHA3HashAlgorithm Class Referenceabstract

Base class for SHA-3 algorithms. More...

#include <arcane/utils/SHA3HashAlgorithm.h>

Inheritance diagram for Arcane::SHA3HashAlgorithm:
Collaboration diagram for Arcane::SHA3HashAlgorithm:

Public Member Functions

void computeHash (ByteConstArrayView input, ByteArray &output) final
 Calculates the hash value for the array input.
void computeHash64 (Span< const Byte > input, ByteArray &output) final
 Calculates the hash value for the array input.
void computeHash64 (Span< const std::byte > input, ByteArray &output) final
 Calculates the hash value for the array input.
Public Member Functions inherited from Arcane::IHashAlgorithm
virtual String name () const
 Name of the algorithm.
virtual Int32 hashSize () const
 Size (in bytes) of the hash key.
virtual void computeHash (Span< const std::byte > input, HashAlgorithmValue &value)
 Calculates the hash value for the array input.
virtual Ref< IHashAlgorithmContextcreateContext ()
 Creates a context to calculate the hash value incrementally.
virtual bool hasCreateContext () const
 Indicates if the implementation supports incremental hashing.

Protected Member Functions

virtual void _initialize (SHA3Algorithm::SHA3 &)=0

Private Member Functions

void _computeHash64 (Span< const std::byte > input, ByteArray &output)

Detailed Description

Base class for SHA-3 algorithms.

Definition at line 37 of file SHA3HashAlgorithm.h.

Member Function Documentation

◆ _computeHash64()

void Arcane::SHA3HashAlgorithm::_computeHash64 ( Span< const std::byte > input,
ByteArray & output )
private

Definition at line 480 of file SHA3HashAlgorithm.cc.

◆ computeHash()

void Arcane::SHA3HashAlgorithm::computeHash ( ByteConstArrayView input,
ByteArray & output )
finalvirtual

Calculates the hash value for the array input.

The hash value is added to output. The length depends on the algorithm used.

Implements Arcane::IHashAlgorithm.

Definition at line 494 of file SHA3HashAlgorithm.cc.

References Arcane::asBytes().

Here is the call graph for this function:

◆ computeHash64() [1/2]

void Arcane::SHA3HashAlgorithm::computeHash64 ( Span< const Byte > input,
ByteArray & output )
finalvirtual

Calculates the hash value for the array input.

The hash value is added to output. The added length is equal to hashSize().

Reimplemented from Arcane::IHashAlgorithm.

Definition at line 504 of file SHA3HashAlgorithm.cc.

References Arcane::asBytes().

Here is the call graph for this function:

◆ computeHash64() [2/2]

void Arcane::SHA3HashAlgorithm::computeHash64 ( Span< const std::byte > input,
ByteArray & output )
finalvirtual

Calculates the hash value for the array input.

The hash value is added to output. The added length is equal to hashSize().

Reimplemented from Arcane::IHashAlgorithm.

Definition at line 514 of file SHA3HashAlgorithm.cc.


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