# MATH_SHA1Update

## C Specification

      #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 first call `MATH_SHA1Init` to initialize the "context" argument. Call this function as many times as needed, and then use `MATH_SHA1GetHash` to obtain the hash 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

04/01/2005 Initial version.

CONFIDENTIAL