|QuickHash Library||C++ Interface|
void Init( const unsigned char* pKey, unsigned int nKeyLength = DEFAULTKEYLEN );
void Init( const char* pKey );
In the first case - pointer to the continuous memory block used as the key.
In the second case - pointer to the null-terminated string used as the key.
[in] Length in bytes of the key.
Initializes the CHMAC object with the key pointed by pKey.
In the above example newkey is a null-terminated string. Therefore, the call
hm.Init( (const unsigned char*)newkey, strlen( newkey ) );
can be replaced by
hm.Init( newkey );
CHMAC Overview | Class Members | Useful Links | HashCalc
See Also CHMAC::Update, CHMAC::Final, CHMAC::FinalHex
|Send Feedback to SlavaSoft Inc.||Tell a friend about QuickHash Library|