NETCalcMD5

C Specification

#include <revolution/net.h>

inline void NETCalcMD5(void* digest, const void* input, u32 length);

Arguments

digest Pointer to the memory location that holds the calculated MD5 value.
data Pointer to the input data
dataLength Size of the input data

Return Values

None.

Description

This function calculates MD5. This is a utility function that successively calls NETMD5Init, NETMD5Update, and NETMD5GetDigest.

Any size and alignment position can be used for the input data.

Be sure to pass enough memory region in the digest argument to store the hash length to be generated.
Since the context structure is allocated internally, make sure that you have sufficient stack when calling the function. For details, see the MD5 section of the hash algorithm.

See Also

NETCalcSHA1

Revision History

2007/02/15 Corrected incorrect links.
2006/09/01 Initial version.


CONFIDENTIAL