4#include "Stroika/Foundation/StroikaPreComp.h"
11using namespace Stroika::Foundation::Cryptography;
12using namespace Stroika::Foundation::Cryptography::Digest;
18 inline void DoMore_ (uint32_t* hash2Update,
const byte* from,
const byte* to)
21 uint32_t hash = (*hash2Update);
22 for (
const byte* bi = from; bi != to; ++bi) {
23 hash += to_integer<uint8_t> (*bi);
27 (*hash2Update) = hash;
29 inline void DoEnd_ (uint32_t* hash2Update)
32 uint32_t hash = (*hash2Update);
36 (*hash2Update) = hash;
47#if qStroika_Foundation_Debug_AssertionsChecked
48 Require (not fCompleted_);
50 DoMore_ (&fData_, start, end);
55#if qStroika_Foundation_Debug_AssertionsChecked
56 Require (not fCompleted_);
#define RequireNotNull(p)
DigesterAlgorithm is specialized for each algorithm; generally don't use this directly,...