# MATH_SHA256Init

## Syntax

      #include <nitro/math/dgt.h>

      static inline void MATH_SHA256Init( MATHSHA256Context *context );

## Arguments

context | Pointer to the context structure to initialize. This structure is used for SHA-256 generation.

## Return Values

None.

## Description

This function initializes the `MATHSHA256Context` context structure used for SHA-256 calculations. Make sure that this function is called before using the `MATH_SHA256Update` and `MATH_SHA256GetHash` functions.
You can re-apply this function to a context structure that is already initialized. In this case, it will return the context structure to its initial state. SHA-256 is an algorithm to find the message digest value. For details, refer to the Federal Information Processing Standard, FIPS PUB 180-2.

## See Also

`MATH_SHA256Update, MATH_SHA256GetHash`

## Revision History

2008/05/23 Initial version.

CONFIDENTIAL