ePass1000 C/C++ API Reference Manual Version 2.0

# MD5_Hash

The MD5_Hash function performs MD5 hash of the given message.

    unsigned char* __stdcall
    MD5_Hash(
        unsigned char* pucData,          // [in]
        unsigned long ulLength,          // [in]
        unsigned char* pucDigest         // [out]
    );

#### Parameters

pucData
  [in] This parameter is a pointer to the input data stream, and not exceed 55 bytes.
ulLength
  [in] This parameter is the size of the pucData buffer, and not exceed 55 bytes.
pucDigest
  [out] This parameter is a pointer to a 16-byte buffer that receives the message digest.

#### Remarks

MD5 hash algorithm is defined in RFC-1321. You may found this document on http://www.rfc-editor.org/rfc/rfc1321.txt.

#### Return Values

This function returns a pointer to the digest buffer.

#### See Also

MD5_HMAC