Implementation of the SHA-1 algorithm. More...
#include <arcane/utils/SHA1HashAlgorithm.h>
Public Member Functions | |
| void | computeHash (Span< const std::byte > input, HashAlgorithmValue &value) override |
| Calculates the hash value for the array input. | |
| 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. | |
| String | name () const override |
| Name of the algorithm. | |
| Int32 | hashSize () const override |
| Size (in bytes) of the hash key. | |
| Ref< IHashAlgorithmContext > | createContext () override |
| Creates a context to calculate the hash value incrementally. | |
| bool | hasCreateContext () const override |
| Indicates if the implementation supports incremental hashing. | |
Private Member Functions | |
| void | _computeHash64 (Span< const std::byte > input, ByteArray &output) |
| void | _computeHash (Span< const std::byte > input, HashAlgorithmValue &value) |
Implementation of the SHA-1 algorithm.
Definition at line 37 of file SHA1HashAlgorithm.h.
|
private |
Definition at line 503 of file SHA1HashAlgorithm.cc.
|
private |
Definition at line 514 of file SHA1HashAlgorithm.cc.
|
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 534 of file SHA1HashAlgorithm.cc.
References Arcane::asBytes().
|
overridevirtual |
Calculates the hash value for the array input.
The hash value is positioned in value
Reimplemented from Arcane::IHashAlgorithm.
Definition at line 525 of file SHA1HashAlgorithm.cc.
|
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 544 of file SHA1HashAlgorithm.cc.
References Arcane::asBytes().
|
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 554 of file SHA1HashAlgorithm.cc.
|
overridevirtual |
Creates a context to calculate the hash value incrementally.
If the implementation does not support incremental mode (hasCreateContext()==false), an exception is thrown.
Reimplemented from Arcane::IHashAlgorithm.
Definition at line 563 of file SHA1HashAlgorithm.cc.
References Arcane::createRef().
Referenced by Arcane::VariableIOReaderMng::_checkHashFunction().
|
inlineoverridevirtual |
Indicates if the implementation supports incremental hashing.
Reimplemented from Arcane::IHashAlgorithm.
Definition at line 49 of file SHA1HashAlgorithm.h.
|
inlineoverridevirtual |
Size (in bytes) of the hash key.
Reimplemented from Arcane::IHashAlgorithm.
Definition at line 47 of file SHA1HashAlgorithm.h.
|
inlineoverridevirtual |
Name of the algorithm.
Reimplemented from Arcane::IHashAlgorithm.
Definition at line 46 of file SHA1HashAlgorithm.h.