AWS SDK for C++  1.9.71
AWS SDK for C++
Sha256HMAC.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 
27 
28 namespace Aws
29 {
30  namespace Utils
31  {
32  namespace Crypto
33  {
37  class AWS_CORE_API Sha256HMAC : public HMAC
38  {
39  public:
44  virtual ~Sha256HMAC();
45 
49  virtual HashResult Calculate(const Aws::Utils::ByteBuffer& toSign, const Aws::Utils::ByteBuffer& secret) override;
50 
51  private:
52 
53  std::shared_ptr< HMAC > m_hmacImpl;
54  };
55 
56  } // namespace Sha256
57  } // namespace Utils
58 } // namespace Aws
59 
Aws::Utils::Crypto::Sha256HMAC::~Sha256HMAC
virtual ~Sha256HMAC()
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
HMAC.h
Aws::Utils::Crypto::HMAC
Definition: HMAC.h:26
Aws::Utils::Crypto::Sha256HMAC
Definition: Sha256HMAC.h:38
Aws::Utils::Crypto::Sha256HMAC::Sha256HMAC
Sha256HMAC()
Aws::Utils::Crypto::Sha256HMAC::Calculate
virtual HashResult Calculate(const Aws::Utils::ByteBuffer &toSign, const Aws::Utils::ByteBuffer &secret) override
Aws::Utils::Array< unsigned char >
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWSMemory.h
Aws::Utils::Outcome
Definition: Outcome.h:26