AWS SDK for C++  1.9.125
AWS SDK for C++
HashingUtils.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
12 #include <aws/core/utils/Array.h>
13 
14 namespace Aws
15 {
16  namespace Utils
17  {
18 
23  {
24  public:
28  static Aws::String Base64Encode(const ByteBuffer& byteBuffer);
29 
34 
38  static Aws::String HexEncode(const ByteBuffer& byteBuffer);
39 
43  static ByteBuffer HexDecode(const Aws::String& str);
44 
48  static ByteBuffer CalculateSHA256HMAC(const ByteBuffer& toSign, const ByteBuffer& secret);
49 
54 
59 
64 
69 
73  static ByteBuffer CalculateSHA1(const Aws::String& str);
74 
79 
83  static ByteBuffer CalculateMD5(const Aws::String& str);
84 
89 
90  static int HashString(const char* strToHash);
91 
92  };
93 
94  } // namespace Utils
95 } // namespace Aws
96 
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::Utils::HashingUtils::Base64Encode
static Aws::String Base64Encode(const ByteBuffer &byteBuffer)
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Utils::HashingUtils::Base64Decode
static ByteBuffer Base64Decode(const Aws::String &)
Aws::Utils::HashingUtils::CalculateSHA1
static ByteBuffer CalculateSHA1(const Aws::String &str)
AWSStreamFwd.h
Aws::Utils::HashingUtils::CalculateSHA256TreeHash
static ByteBuffer CalculateSHA256TreeHash(const Aws::String &str)
Aws::Utils::HashingUtils::CalculateMD5
static ByteBuffer CalculateMD5(const Aws::String &str)
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::HashingUtils::CalculateSHA1
static ByteBuffer CalculateSHA1(Aws::IOStream &stream)
Aws::Utils::HashingUtils::CalculateSHA256TreeHash
static ByteBuffer CalculateSHA256TreeHash(Aws::IOStream &stream)
Aws::Utils::HashingUtils::CalculateSHA256
static ByteBuffer CalculateSHA256(const Aws::String &str)
Aws::Utils::HashingUtils::HexDecode
static ByteBuffer HexDecode(const Aws::String &str)
Aws::Utils::HashingUtils::CalculateSHA256HMAC
static ByteBuffer CalculateSHA256HMAC(const ByteBuffer &toSign, const ByteBuffer &secret)
Core_EXPORTS.h
Aws::Utils::HashingUtils
Definition: HashingUtils.h:23
Aws::Utils::HashingUtils::CalculateMD5
static ByteBuffer CalculateMD5(Aws::IOStream &stream)
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::Utils::HashingUtils::HashString
static int HashString(const char *strToHash)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Utils::HashingUtils::HexEncode
static Aws::String HexEncode(const ByteBuffer &byteBuffer)
Aws::Utils::HashingUtils::CalculateSHA256
static ByteBuffer CalculateSHA256(Aws::IOStream &stream)