AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HashingUtils.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/Array.h>
13
14namespace Aws
15{
16 namespace Utils
17 {
18
22 class AWS_CORE_API HashingUtils
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
74
79
84
89
94
99
104
109
110 static int HashString(const char* strToHash);
111
112 };
113
114 } // namespace Utils
115} // namespace Aws
116
static ByteBuffer CalculateSHA256TreeHash(Aws::IOStream &stream)
static ByteBuffer CalculateCRC32(const Aws::String &str)
static Aws::String Base64Encode(const ByteBuffer &byteBuffer)
static int HashString(const char *strToHash)
static ByteBuffer HexDecode(const Aws::String &str)
static ByteBuffer Base64Decode(const Aws::String &)
static ByteBuffer CalculateCRC32(Aws::IOStream &stream)
static ByteBuffer CalculateSHA256(Aws::IOStream &stream)
static ByteBuffer CalculateSHA256HMAC(const ByteBuffer &toSign, const ByteBuffer &secret)
static ByteBuffer CalculateMD5(const Aws::String &str)
static ByteBuffer CalculateSHA1(const Aws::String &str)
static ByteBuffer CalculateSHA1(Aws::IOStream &stream)
static ByteBuffer CalculateCRC32C(Aws::IOStream &stream)
static ByteBuffer CalculateSHA256TreeHash(const Aws::String &str)
static ByteBuffer CalculateCRC32C(const Aws::String &str)
static ByteBuffer CalculateSHA256(const Aws::String &str)
static ByteBuffer CalculateMD5(Aws::IOStream &stream)
static Aws::String HexEncode(const ByteBuffer &byteBuffer)
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97