Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::MD5HashAlgorithm Class Reference

Calculates the MD5 hashing function of an array. More...

#include <arcane/utils/MD5HashAlgorithm.h>

Public Member Functions

String name () const override
 Name of the algorithm.
Int32 hashSize () const override
 Size (in bytes) of the hash key.
void computeHash (ByteConstArrayView input, ByteArray &output) override
 Calculates the hash value for the array input.
void computeHash64 (Span< const Byte > input, ByteArray &output) override
 Calculates the hash value for the array input.
void computeHash64 (Span< const std::byte > input, ByteArray &output) override
 Calculates the hash value for the array input.
Public Member Functions inherited from Arcane::IHashAlgorithm
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.

Detailed Description

Calculates the MD5 hashing function of an array.

For this algorithm, the key size is 16 bytes.

Definition at line 34 of file MD5HashAlgorithm.h.

Constructor & Destructor Documentation

◆ MD5HashAlgorithm()

Arcane::MD5HashAlgorithm::MD5HashAlgorithm ( )

Definition at line 44 of file MD5HashAlgorithm.cc.

Member Function Documentation

◆ computeHash()

void Arcane::MD5HashAlgorithm::computeHash ( ByteConstArrayView input,
ByteArray & output )
overridevirtual

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 52 of file MD5HashAlgorithm.cc.

References Arcane::asBytes().

◆ computeHash64() [1/2]

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

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 62 of file MD5HashAlgorithm.cc.

References Arcane::asBytes().

◆ computeHash64() [2/2]

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

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 72 of file MD5HashAlgorithm.cc.

◆ hashSize()

Int32 Arcane::MD5HashAlgorithm::hashSize ( ) const
inlineoverridevirtual

Size (in bytes) of the hash key.

Reimplemented from Arcane::IHashAlgorithm.

Definition at line 44 of file MD5HashAlgorithm.h.

◆ name()

String Arcane::MD5HashAlgorithm::name ( ) const
inlineoverridevirtual

Name of the algorithm.

Reimplemented from Arcane::IHashAlgorithm.

Definition at line 43 of file MD5HashAlgorithm.h.


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