AWS SDK for C++
0.14.3
AWS SDK for C++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
aws-cpp-sdk-core
include
aws
core
utils
crypto
Sha256HMAC.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License").
5
* You may not use this file except in compliance with the License.
6
* A copy of the License is located at
7
*
8
* http://aws.amazon.com/apache2.0
9
*
10
* or in the "license" file accompanying this file. This file is distributed
11
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
* express or implied. See the License for the specific language governing
13
* permissions and limitations under the License.
14
*/
15
16
/*
17
* Interface for Sha256 encryptor and hmac
18
*/
19
#pragma once
20
21
#ifdef __APPLE__
22
23
#ifdef __clang__
24
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
25
#endif // __clang__
26
27
#ifdef __GNUC__
28
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29
#endif // __GNUC__
30
31
#endif // __APPLE__
32
33
#include <
aws/core/Core_EXPORTS.h
>
34
35
#include <
aws/core/utils/crypto/HMAC.h
>
36
#include <
aws/core/utils/memory/AWSMemory.h
>
37
38
namespace
Aws
39
{
40
namespace
Utils
41
{
42
namespace
Crypto
43
{
47
class
AWS_CORE_API
Sha256HMAC
:
public
HMAC
48
{
49
public
:
53
Sha256HMAC
();
54
virtual
~
Sha256HMAC
();
55
59
virtual
HashResult
Calculate(
const
Aws::Utils::ByteBuffer
& toSign,
const
Aws::Utils::ByteBuffer
& secret)
override
;
60
61
private
:
62
63
std::shared_ptr< HMAC > m_hmacImpl;
64
};
65
66
}
// namespace Sha256
67
}
// namespace Utils
68
}
// namespace Aws
69
Aws::Utils::Crypto::Sha256HMAC
Definition:
Sha256HMAC.h:47
Aws::Utils::Outcome
Definition:
ACMClient.h:45
Aws::Utils::Crypto::HMAC
Definition:
HMAC.h:35
Aws::Utils::Array
Definition:
Array.h:43
AWSMemory.h
HMAC.h
Core_EXPORTS.h
AWS_CORE_API
#define AWS_CORE_API
Definition:
Core_EXPORTS.h:35
Aws
JSON (JavaScript Object Notation).
Definition:
AccessManagementClient.h:24
Generated by
1.8.11