5 #ifndef _INC_cHashTypeDef_H
6 #define _INC_cHashTypeDef_H
33 , m_eHashType(eHashType)
34 , m_nHashSize(nHashSize)
44 return this->m_eHashType;
49 return this->m_eHashType;
55 return this->m_nHashSize;
61 virtual CObject* CreateObject(
void)
const override;
64 virtual size_t ComputeHash(BYTE* pOutput,
const BYTE* pInput,
size_t nInputSize)
const = 0;
85 const cHashTypeDef* GetHashTypeBySize(
size_t nSizeMin)
const;
87 void InitAllHashTypes();
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cHashBase.h:20
Definition: cHashTypeDef.h:21
size_t get_HashSize() const noexcept
Definition: cHashTypeDef.h:52
const SSL_Hash_TYPE m_eHashType
Digest identifier from SSL_Hash_TYPE.
Definition: cHashTypeDef.h:27
UNITTEST_FRIEND(cHashTypeDef)
cHashTypeDef(SSL_Hash_TYPE eHashType, const char *pszName, size_t nHashSize) noexcept
Definition: cHashTypeDef.h:31
virtual ~cHashTypeDef()
Definition: cHashTypeDef.h:37
virtual size_t ComputeHash(BYTE *pOutput, const BYTE *pInput, size_t nInputSize) const =0
SSL_Hash_TYPE get_HashCode() const noexcept
Definition: cHashTypeDef.h:46
virtual cHashBase * AllocHash(void) const =0
SSL_Hash_TYPE get_HashType() const noexcept
Definition: cHashTypeDef.h:41
const size_t m_nHashSize
size_t // Output length of the digest function. (bytes)
Definition: cHashTypeDef.h:28
Definition: cHashTypeDef.h:70
const cHashTypeDef * GetHashType(SSL_Hash_TYPE e) const noexcept
Definition: cHashTypeDef.h:81
void AddHashType(const cHashTypeDef *pDef)
Definition: cHashTypeDef.h:77
TYPE_PTR FindArgForKey(TYPE_KEY key1) const noexcept
Definition: cArraySort.h:455
Definition: cArraySort.h:613
ITERATE_t Add(TYPE_ARG pNew)
Definition: cArraySort.h:186
Definition: cObjectFactory.h:17
Definition: cSingleton.h:127
UNITTEST2_PREDEF(cQuadtree)
SSL_Hash_TYPE
Definition: cHashCode.h:23