13#include "arcane/utils/StdHeader.h"
14#include "arcane/utils/MD5HashAlgorithm_Licensed.h"
15#include "arcane/utils/MD5HashAlgorithm.h"
16#include "arcane/utils/Array.h"
17#include "arcane/utils/Iostream.h"
32 unsigned char buf[16];
33 _md5_buffer((
const char*)input.data(), input.size(), buf);
35 for (
int i = 0; i < 16; ++i) {
56 return _computeHash64(
asBytes(input64), output);
66 return _computeHash64(bytes, output);
75 return _computeHash64(input, output);
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.
View of an array of elements of type T.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Array< Byte > ByteArray
Dynamic one-dimensional array of characters.
Impl::SpanTypeFromSize< conststd::byte, SizeType >::SpanType asBytes(const SpanImpl< DataType, SizeType, Extent > &s)
Converts the view into an array of non-modifiable bytes.
ConstArrayView< Byte > ByteConstArrayView
C equivalent of a 1D array of characters.