AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Sha1.h
Go to the documentation of this file.
1
6/*
7* Interface for Sha1 encryptor
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 Sha1 : public Hash
39 {
40 public:
45 virtual ~Sha1();
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 private:
67
68 std::shared_ptr< Hash > m_hashImpl;
69 };
70
71 } // namespace Crypto
72 } // namespace Utils
73} // namespace Aws
74
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
char * buffer
Definition: cJSON.h:174
virtual HashResult GetHash() override
virtual void Update(unsigned char *buffer, size_t bufferSize) override
virtual HashResult Calculate(const Aws::String &str) override
virtual HashResult Calculate(Aws::IStream &stream) 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