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

#include <cHashSHA512.h>

Inheritance diagram for GrayLib::cHashSHA512:
GrayLib::cHashCodeT< 64 > Gray::cMemStatic< TYPE_SIZE >

Public Member Functions

 cHashSHA512 () noexcept
 
 cHashSHA512 (const char *pszHexDigest)
 
 UNITTEST_FRIEND (cHashSHA512)
 
- Public Member Functions inherited from GrayLib::cHashCodeT< 64 >
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[k_Size], const void *pInput, size_t nInputSize, bool is384)
 
static size_t GRAYCALL ComputeHmac (BYTE pOutput[k_Size], const BYTE *pKey, size_t nKeySize, const void *pInput, size_t nInputSize, bool is384)
 

Friends

class cHashSHA512Builder
 

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

64 byte hash. SSL_Hash_SHA512 NON reversible hash, but possible to brute force guess?

Constructor & Destructor Documentation

◆ cHashSHA512() [1/2]

GrayLib::cHashSHA512::cHashSHA512 ( )
inlinenoexcept

◆ cHashSHA512() [2/2]

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

Member Function Documentation

◆ ComputeHash()

size_t GRAYCALL GrayLib::cHashSHA512::ComputeHash ( BYTE  pOutput[k_Size],
const void *  pInput,
size_t  nInputSize,
bool  is384 
)
static

◆ ComputeHmac()

size_t GRAYCALL GrayLib::cHashSHA512::ComputeHmac ( BYTE  pOutput[k_Size],
const BYTE *  pKey,
size_t  nKeySize,
const void *  pInput,
size_t  nInputSize,
bool  is384 
)
static

◆ UNITTEST_FRIEND()

GrayLib::cHashSHA512::UNITTEST_FRIEND ( cHashSHA512  )

Friends And Related Function Documentation

◆ cHashSHA512Builder

friend class cHashSHA512Builder
friend

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