# MATH_SHA1Init

## Syntax

      #include <nitro/math/dgt.h>

      static inline void MATH_SHA1Init( MATHSHA1Context *context );

## Arguments

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

## Return Values

None.

## Description

This function initializes the `MATHSHA1Context`-type context structure used in calculating SHA-1. Make sure that this function is called before using the `MATH_SHA1Update` and `MATH_SHA1GetHash` 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-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_SHA1Update`
`MATH_SHA1GetHash`

## Revision History

2005/04/01 Initial version.

CONFIDENTIAL