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
HMAC.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
#include <
aws/core/Core_EXPORTS.h
>
22
23
#include <
aws/core/utils/Array.h
>
24
#include <
aws/core/utils/crypto/HashResult.h
>
25
26
namespace
Aws
27
{
28
namespace
Utils
29
{
30
namespace
Crypto
31
{
35
class
AWS_CORE_API
HMAC
36
{
37
public
:
38
HMAC
() {};
39
virtual
~HMAC
() {};
40
44
virtual
HashResult
Calculate(
const
Aws::Utils::ByteBuffer
& toSign,
const
Aws::Utils::ByteBuffer
& secret) = 0;
45
46
};
47
52
class
AWS_CORE_API
HMACFactory
53
{
54
public
:
55
virtual
~HMACFactory
() {}
56
60
virtual
std::shared_ptr<HMAC> CreateImplementation()
const
= 0;
61
66
virtual
void
InitStaticState
() {}
67
72
virtual
void
CleanupStaticState
() {}
73
};
74
75
}
// namespace Crypto
76
}
// namespace Utils
77
}
// namespace Aws
78
Aws::Utils::Crypto::HMAC::HMAC
HMAC()
Definition:
HMAC.h:38
Aws::Utils::Crypto::HMACFactory::CleanupStaticState
virtual void CleanupStaticState()
Definition:
HMAC.h:72
HashResult.h
Array.h
Aws::Utils::Crypto::HMACFactory::InitStaticState
virtual void InitStaticState()
Definition:
HMAC.h:66
Aws::Utils::Crypto::HMACFactory
Definition:
HMAC.h:52
Aws::Utils::Outcome
Definition:
ACMClient.h:45
Aws::Utils::Crypto::HMAC
Definition:
HMAC.h:35
Aws::Utils::Crypto::HMACFactory::~HMACFactory
virtual ~HMACFactory()
Definition:
HMAC.h:55
Aws::Utils::Array
Definition:
Array.h:43
Aws::Utils::Crypto::HMAC::~HMAC
virtual ~HMAC()
Definition:
HMAC.h:39
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