|
QuickHash Library |
API |
|
SL_SHA512_Calculate
void SL_HASHCALL SL_SHA512_Calculate( void*
pDest, const void* pSrc, unsigned int nSrcLength
);
Parameters
pDest
[out] Pointer to the memory
buffer that will receive the message digest.
pSrc
[in] Pointer to the
continuous memory block for which to calculate the message digest.
nSrcLength
[in] Length in bytes
of the memory block.
Remarks
Calculates the message digest for the memory block
pointed by pSrc. The digest is retrieved in the memory buffer pointed by
pDest. The size of the memory buffer pointed by pDest must be at
least SLC_SHA512_DIGESTSIZE bytes.
Example
#include <string.h>
#include <QuickHash.h>
int main()
{
char string[] = "Test String";
unsigned char digest[ SLC_SHA512_DIGESTSIZE ];
/*****Calculate the digest********************************/
SL_SHA512_Calculate( digest, string, strlen( string ) );
/*****Use the digest**************************************/
/*...*/
return 0;
}
|
|
SHA512 API Overview
| SHA512 API_Functions
|
Useful Links | HashCalc
See Also
SL_SHA512_CalculateHex,
SL_SHA512_CalculateStr,
SL_SHA512_CalculateStrHex
|