# MATH_MD5GetHash

## C Specification

      #include <nitro/math/dgt.h>

      static inline void MATH_MD5GetHash( MATHMD5Context *context, void* digest );

## Arguments

`context` | Pointer to the context structure used for MD5 generation.
digest | Pointer to the memory location that holds the message digest value.

## Return Values

None.

## Description

This function gets the digest value using MD5. You must use `MATH_MD5Init` to initialize the "context" argument, and then use `MATH_MD5Update` to provide input data. The length of the generated message digest value is 128 bits, or `MATH_MD5_DIGEST_SIZE (= 16)` bytes. Use the "digest" argument to pass an area that can store a value of this size. This function rewrites context internally, so you cannot continue to use the same context with the MATH_MD5Update function.
MD5 is an algorithm to find the message digest value. For details, see RFC (Request For Comments) 1321, which is published by IETF (The Internet Engineering Task Force).

## See Also

`MATH_MD5Init`, `MATH_MD5Update`

## Revision History

07/11/2005 Added to Description.
04/12/2005 Changed function name.
04/01/2005 Initial version.