# MATH_SHA1Update

## Syntax

      #include <nitro/math/dgt.h>

      static inline void MATH_SHA1Update( MATHSHA1Context *context, const void* input, u32 length );

## Arguments

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

## Return Values

None.

## Description

This function updates the SHA-1 digest value based on the input data. You must initialize the `context` argument in advance using the `MATH_SHA1Init` function. Call this function as many times as needed, and then use the `MATH_SHA1GetHash` function to obtain the digest value. Any size and alignment position can be used for the input data. SHA-1 is an algorithm to find the message digest value. For details, see RFC (Request For Comments) 3174, which is published by IETF (The Internet Engineering Task Force).

## See Also

`MATH_SHA1Init`, `MATH_SHA1GetHash`

## Revision History

2005/04/01 Initial version.

CONFIDENTIAL