# MATH_SHA256Update

## Syntax

      #include <nitro/math/dgt.h>

      static inline void MATH_SHA256Update( MATHSHA256Context *context, const void* input, u32 length );

## Arguments

context | Pointer to the context structure used for SHA-256 generation.
input | Pointer to the input data.
length | Size of the input data.

## Return Values

None.

## Description

This function updates the SHA-256 digest value based on the input data. You must initialize the `context` argument in advance using the `MATH_SHA256Init` function. Call this function as many times as needed, and then use the `MATH_SHA256GetHash` function to obtain the digest value. Any size and alignment position can be used for the input data. 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_SHA256Init`, MATH_SHA256GetHash`

## Revision History

2008/05/23 Initial version.

CONFIDENTIAL