AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Sha256.h
Go to the documentation of this file.
1
6 /*
7 * Interface for Sha256 encryptor and hmac
8 */
9#pragma once
10
11#ifdef __APPLE__
12
13#ifdef __clang__
14#pragma clang diagnostic ignored "-Wdeprecated-declarations"
15#endif // __clang__
16
17#ifdef __GNUC__
18#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
19#endif // __GNUC__
20
21#endif // __APPLE__
22
24
26
27namespace Aws
28{
29 namespace Utils
30 {
31 namespace Crypto
32 {
33 class WindowsHashImpl;
34
38 class AWS_CORE_API Sha256 : public Hash
39 {
40 public:
45 virtual ~Sha256();
46
50 virtual HashResult Calculate(const Aws::String& str) override;
51
55 virtual HashResult Calculate(Aws::IStream& stream) override;
56
60 virtual void Update(unsigned char* buffer, size_t bufferSize) override;
61
65 virtual HashResult GetHash() override;
66
67 private:
68
69 std::shared_ptr< Hash > m_hashImpl;
70 };
71
72 } // namespace Crypto
73 } // namespace Utils
74} // namespace Aws
75
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
char * buffer
Definition: cJSON.h:174
virtual HashResult Calculate(Aws::IStream &stream) override
virtual HashResult Calculate(const Aws::String &str) override
virtual HashResult GetHash() override
virtual void Update(unsigned char *buffer, size_t bufferSize) override
std::basic_istream< char, std::char_traits< char > > IStream
Definition: AWSStreamFwd.h:20
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97