| QuickHash Library | C++ Interface |
|
CHMAC::Final
void Final( unsigned char* pDest );
Parameters
pDest
[out] Pointer to the memory buffer that will receive the HMAC.
Remarks
Call this member function to retrieve the HMAC from the CHMAC object. The HMAC is retrieved in the memory buffer pointed by pDest. The size of the memory buffer pointed by pDest must be at least CHMAC<T>::DIGESTSIZE bytes. For example, the size of the memory buffer pointed by pDest must be at least CHMAC<CMD5>::DIGESTSIZE bytes, if the HMAC is calculated using the MD5 hash algorithm.
After the Final method is performed, the CHMAC object is initialized for new calculations, as it would be constructed again. To initialize the CHMAC object with another key, call the Init method.
Example
|
CHMAC Overview | Class Members | Useful Links | HashCalc
See Also CHMAC::FinalHex, CHMAC::Update, CHMAC::Init
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickHash Library |