# MATH_SHA1Init

## C Specification

      #include <nitro/math/dgt.h>

      static inline void MATH_SHA1Init( MATHSHA1Context *context );

## Arguments

`context` | Pointer to the context structure used for initializing 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 `MATH_SHA1Update` and `MATH_SHA1GetHash`. 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

04/01/2005 Initial version.

CONFIDENTIAL