Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cHashSHA256 Class Reference

#include <cHashSHA256.h>

Inheritance diagram for GrayLib::cHashSHA256:
GrayLib::cHashCodeT< 32 > Gray::cMemStatic< TYPE_SIZE >

Public Member Functions

 cHashSHA256 ()
 
 cHashSHA256 (const char *pszHexDigest)
 
 UNITTEST_FRIEND (cHashSHA256)
 
- Public Member Functions inherited from GrayLib::cHashCodeT< 32 >
bool isValidHash () const noexcept
 
size_t get_HashSize () const noexcept
 
cHashCode get_HashCode () const
 
StrLen_t GetHexDigest (OUT char *pszHexString) const
 
cStringA get_HexDigest () const
 
HRESULT put_HexDigest (const char *pszInp)
 
- Public Member Functions inherited from Gray::cMemStatic< TYPE_SIZE >
size_t get_DataLength () const noexcept
 
const BYTE * get_DataBytes () const noexcept
 
 operator const BYTE * () const noexcept
 

Static Public Member Functions

static size_t GRAYCALL ComputeHash (BYTE pOutput[32], const void *pInput, size_t nInputSize, bool is224)
 
static size_t GRAYCALL ComputeHmac (BYTE pOutput[32], const BYTE *pKey, size_t nKeySize, const void *pInput, size_t nInputSize, bool is224)
 

Friends

class cHashSHA256Builder
 

Additional Inherited Members

- Public Attributes inherited from Gray::cMemStatic< TYPE_SIZE >
BYTE m_Data [TYPE_SIZE]
 All objects of this type are this size. More...
 
- Static Public Attributes inherited from Gray::cMemStatic< TYPE_SIZE >
static const size_t k_Size = TYPE_SIZE
 All hashes of this type are this size (bytes). More...
 
static const size_t k_SizeHexDigest = ((TYPE_SIZE * 2) + 1)
 hold a string with the hex digest of this. (chars). More...
 

Detailed Description

32 byte hash. SSL_Hash_SHA256 NON reversible hash, but possible to brute force guess.

Note
SHA256 is used for DSA

Constructor & Destructor Documentation

◆ cHashSHA256() [1/2]

GrayLib::cHashSHA256::cHashSHA256 ( )
inline

◆ cHashSHA256() [2/2]

GrayLib::cHashSHA256::cHashSHA256 ( const char *  pszHexDigest)
inline

Member Function Documentation

◆ ComputeHash()

size_t GRAYCALL GrayLib::cHashSHA256::ComputeHash ( BYTE  pOutput[32],
const void *  pInput,
size_t  nInputSize,
bool  is224 
)
static

◆ ComputeHmac()

size_t GRAYCALL GrayLib::cHashSHA256::ComputeHmac ( BYTE  pOutput[32],
const BYTE *  pKey,
size_t  nKeySize,
const void *  pInput,
size_t  nInputSize,
bool  is224 
)
static

◆ UNITTEST_FRIEND()

GrayLib::cHashSHA256::UNITTEST_FRIEND ( cHashSHA256  )

Friends And Related Function Documentation

◆ cHashSHA256Builder

friend class cHashSHA256Builder
friend

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