QuickHash Library API


void SL_HASHCALL SL_RIPEMD128_Calculate( void* pDest, const void* pSrc, unsigned int nSrcLength );



    [out] Pointer to the memory buffer that will receive the message digest.


    [in] Pointer to the continuous memory block for which to calculate the message digest.


    [in] Length in bytes of the memory block. 


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_RIPEMD128_DIGESTSIZE bytes. 


#include <string.h>
#include <QuickHash.h>

int main()
    char string[] = "Test String";
    unsigned char digest[ SLC_RIPEMD128_DIGESTSIZE ];

    /*****Calculate the digest********************************/

    SL_RIPEMD128_Calculate( digest, string, strlen( string ) );

    /*****Use the digest**************************************/

    return 0;



RIPEMD128 API Overview   |   RIPEMD128 API_Functions   |   Useful Links   |   HashCalc


See Also    SL_RIPEMD128_CalculateHex, SL_RIPEMD128_CalculateStr, SL_RIPEMD128_CalculateStrHex



Send Feedback to SlavaSoft Inc. Tell a friend about QuickHash Library