AWS SDK for C++  1.9.68
AWS SDK for C++
Static Public Member Functions | List of all members
Aws::Utils::HashingUtils Class Reference

#include <HashingUtils.h>

Static Public Member Functions

static Aws::String Base64Encode (const ByteBuffer &byteBuffer)
 
static ByteBuffer Base64Decode (const Aws::String &)
 
static Aws::String HexEncode (const ByteBuffer &byteBuffer)
 
static ByteBuffer HexDecode (const Aws::String &str)
 
static ByteBuffer CalculateSHA256HMAC (const ByteBuffer &toSign, const ByteBuffer &secret)
 
static ByteBuffer CalculateSHA256 (const Aws::String &str)
 
static ByteBuffer CalculateSHA256 (Aws::IOStream &stream)
 
static ByteBuffer CalculateSHA256TreeHash (const Aws::String &str)
 
static ByteBuffer CalculateSHA256TreeHash (Aws::IOStream &stream)
 
static ByteBuffer CalculateSHA1 (const Aws::String &str)
 
static ByteBuffer CalculateSHA1 (Aws::IOStream &stream)
 
static ByteBuffer CalculateMD5 (const Aws::String &str)
 
static ByteBuffer CalculateMD5 (Aws::IOStream &stream)
 
static int HashString (const char *strToHash)
 

Detailed Description

Generic utils for hashing strings

Definition at line 22 of file HashingUtils.h.

Member Function Documentation

◆ Base64Decode()

static ByteBuffer Aws::Utils::HashingUtils::Base64Decode ( const Aws::String )
static

Base64 decodes string

◆ Base64Encode()

static Aws::String Aws::Utils::HashingUtils::Base64Encode ( const ByteBuffer byteBuffer)
static

Base64 encodes string

◆ CalculateMD5() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateMD5 ( Aws::IOStream stream)
static

Calculates a MD5 Hash value

◆ CalculateMD5() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateMD5 ( const Aws::String str)
static

Calculates a MD5 Hash value

◆ CalculateSHA1() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA1 ( Aws::IOStream stream)
static

Calculates a SHA1 Hash digest on a stream (the entire stream is read, not hex encoded.)

◆ CalculateSHA1() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA1 ( const Aws::String str)
static

Calculates a SHA1 Hash digest (not hex encoded)

◆ CalculateSHA256() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA256 ( Aws::IOStream stream)
static

Calculates a SHA256 Hash digest on a stream (the entire stream is read, not hex encoded.)

◆ CalculateSHA256() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA256 ( const Aws::String str)
static

Calculates a SHA256 Hash digest (not hex encoded)

◆ CalculateSHA256HMAC()

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA256HMAC ( const ByteBuffer toSign,
const ByteBuffer secret 
)
static

Calculates a SHA256 HMAC digest (not hex encoded)

◆ CalculateSHA256TreeHash() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA256TreeHash ( Aws::IOStream stream)
static

Calculates a SHA256 Tree Hash digest on a stream (the entire stream is read, not hex encoded.)

◆ CalculateSHA256TreeHash() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA256TreeHash ( const Aws::String str)
static

Calculates a SHA256 Tree Hash digest (not hex encoded, see tree hash definition: http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html)

◆ HashString()

static int Aws::Utils::HashingUtils::HashString ( const char *  strToHash)
static

◆ HexDecode()

static ByteBuffer Aws::Utils::HashingUtils::HexDecode ( const Aws::String str)
static

Hex encodes string

◆ HexEncode()

static Aws::String Aws::Utils::HashingUtils::HexEncode ( const ByteBuffer byteBuffer)
static

Hex encodes string


The documentation for this class was generated from the following file: