AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
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 CalculateSHA512 (const Aws::String &str)
 
static ByteBuffer CalculateSHA512 (Aws::IOStream &stream)
 
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 ByteBuffer CalculateCRC32 (const Aws::String &str)
 
static ByteBuffer CalculateCRC32 (Aws::IOStream &stream)
 
static ByteBuffer CalculateCRC32C (const Aws::String &str)
 
static ByteBuffer CalculateCRC32C (Aws::IOStream &stream)
 
static ByteBuffer CalculateCRC64 (const Aws::String &str)
 
static ByteBuffer CalculateCRC64 (Aws::IOStream &stream)
 
static ByteBuffer CalculateXXHash64 (const Aws::String &str)
 
static ByteBuffer CalculateXXHash64 (Aws::IOStream &stream)
 
static ByteBuffer CalculateXXHash3 (const Aws::String &str)
 
static ByteBuffer CalculateXXHash3 (Aws::IOStream &stream)
 
static ByteBuffer CalculateXXHash128 (const Aws::String &str)
 
static ByteBuffer CalculateXXHash128 (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

◆ CalculateCRC32() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC32 ( Aws::IOStream & stream)
static

Calculates a CRC32 Hash value

◆ CalculateCRC32() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC32 ( const Aws::String & str)
static

Calculates a CRC32 Hash value

◆ CalculateCRC32C() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC32C ( Aws::IOStream & stream)
static

Calculates a CRC32C Hash value

◆ CalculateCRC32C() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC32C ( const Aws::String & str)
static

Calculates a CRC32C Hash value

◆ CalculateCRC64() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC64 ( Aws::IOStream & stream)
static

Calculates a CRC64 Hash value

◆ CalculateCRC64() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateCRC64 ( const Aws::String & str)
static

Calculates a CRC64 Hash value

◆ 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)

◆ CalculateSHA512() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA512 ( Aws::IOStream & stream)
static

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

◆ CalculateSHA512() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateSHA512 ( const Aws::String & str)
static

Calculates a SHA512 Hash digest (not hex encoded)

◆ CalculateXXHash128() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash128 ( Aws::IOStream & stream)
static

Calculates a XXHash128 Hash value

◆ CalculateXXHash128() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash128 ( const Aws::String & str)
static

Calculates a XXHash128 Hash value

◆ CalculateXXHash3() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash3 ( Aws::IOStream & stream)
static

Calculates a XXHash3 Hash value

◆ CalculateXXHash3() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash3 ( const Aws::String & str)
static

Calculates a XXHash3 Hash value

◆ CalculateXXHash64() [1/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash64 ( Aws::IOStream & stream)
static

Calculates a XXHash64 Hash value

◆ CalculateXXHash64() [2/2]

static ByteBuffer Aws::Utils::HashingUtils::CalculateXXHash64 ( const Aws::String & str)
static

Calculates a XXHash64 Hash value

◆ 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: