![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cHashMD5.h>
Public Member Functions | |
cHashMD5 () noexcept | |
cHashMD5 (const char *pszHexDigest) | |
void | SetHashFrom (const void *pInput, size_t nInputSize) |
void | SetHashFromStr (const char *pszString) |
void | SetHmacFrom (const BYTE *pKey, size_t nKeySize, const void *pInput, size_t nInputSize) |
UNITTEST_FRIEND (cHashMD5) | |
![]() | |
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) |
![]() | |
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[16], const void *pInput, size_t nSize) |
static size_t GRAYCALL | ComputeHmac (BYTE pOutput[16], const BYTE *pKey, size_t nKeySize, const void *pInput, size_t nSize) |
Friends | |
class | cHashMD5Builder |
Additional Inherited Members | |
![]() | |
BYTE | m_Data [TYPE_SIZE] |
All objects of this type are this size. More... | |
![]() | |
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... | |
Hold a 16-byte MD5 hash from a stream of data. SSL_Hash_MD5 NOT known to be reversible, but possible to brute force guess. This should ideally be instance salted so it cannot be compared with other known hashes.
|
inlinenoexcept |
|
inline |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
GrayLib::cHashMD5::UNITTEST_FRIEND | ( | cHashMD5 | ) |
|
friend |