AWS SDK for C++  1.8.129
AWS SDK for C++
MD5.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 
23 #include <aws/core/Core_EXPORTS.h>
24 
26 #include <aws/core/utils/Outcome.h>
27 
28 namespace Aws
29 {
30  namespace Utils
31  {
32  namespace Crypto
33  {
34  class WindowsHashImpl;
35 
39  class AWS_CORE_API MD5 : public Hash
40  {
41  public:
45  MD5();
46  virtual ~MD5();
47 
51  virtual HashResult Calculate(const Aws::String& str) override;
52 
56  virtual HashResult Calculate(Aws::IStream& stream) override;
57 
58  private:
59 
60  std::shared_ptr<Hash> m_hashImpl;
61  };
62 
63  } // namespace Crypto
64  } // namespace Utils
65 } // namespace Aws
66 
Aws::Utils::Crypto::MD5::~MD5
virtual ~MD5()
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Utils::Crypto::MD5
Definition: MD5.h:40
Aws::Utils::Crypto::MD5::Calculate
virtual HashResult Calculate(const Aws::String &str) override
Aws::Utils::Crypto::Hash
Definition: Hash.h:23
Aws::IStream
std::basic_istream< char, std::char_traits< char > > IStream
Definition: AWSStreamFwd.h:20
Aws::Utils::Crypto::MD5::MD5
MD5()
Outcome.h
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Utils::Crypto::MD5::Calculate
virtual HashResult Calculate(Aws::IStream &stream) override
Hash.h