AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrecalculatedHash.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/crypto/Hash.h>
10#include <aws/core/utils/crypto/HashResult.h>
11#include <aws/core/utils/Outcome.h>
12
13namespace Aws {
14 namespace Utils {
15 namespace Crypto {
21 class AWS_CORE_API PrecalculatedHash : public Hash {
22 public:
23 explicit PrecalculatedHash(const Aws::String &hash);
25 HashResult Calculate(const Aws::String &str) override;
27 void Update(unsigned char *string, size_t bufferSize) override;
28 HashResult GetHash() override;
29
30 private:
31 Aws::String m_hashString;
32 HashResult m_decodedHashString;
33
34 };
35 }
36 }
37}
PrecalculatedHash(const Aws::String &hash)
HashResult Calculate(Aws::IStream &stream) override
void Update(unsigned char *string, size_t bufferSize) override
HashResult Calculate(const Aws::String &str) override
std::basic_istream< char, std::char_traits< char > > IStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97