1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MATH_SHA1Init</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MATH_SHA1Init<img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19  <PRE><CODE>#include &lt;nitro/math/dgt.h&gt;
20
21static inline void MATH_SHA1Init( <A href="MATHSHA1Context.html">MATHSHA1Context</A> *context );
22</CODE></PRE>
23  </dd>
24</dl><h2>Arguments</h2>
25
26<table border="1" width="100%">
27    <TR>
28<TD width="176"><em><strong><font face="Courier New">context</font></strong></em></TD>
29<TD width="670">Pointer to the context structure to initialize. This structure is used for SHA-1 generation.</TD>
30    </TR>
31  </table>
32<h2>Return Values</h2>
33<p>None.</p>
34<H2>Description</H2>
35<P>This function initializes the <a href="MATHSHA1Context.html"><code>MATHSHA1Context</code></a>-type context structure used in calculating SHA-1. Make sure that this function is called before using the <CODE><A href="MATH_SHA256Update.html">MATH_SHA1Update</A></CODE> and <CODE><A href="MATH_SHA256GetHash.html">MATH_SHA1GetHash</A></CODE> functions.<BR>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).
36</P>
37<h2>See Also</h2>
38<P><a href="MATH_SHA1Update.html"><code>MATH_SHA1Update</code></a><BR> <a href="MATH_SHA1GetHash.html"><code>MATH_SHA1GetHash</code></a></P>
39<H2>Revision History</H2>
40<P>
412005/04/01 Initial version.
42</P>
43<hr><p>CONFIDENTIAL</p></body>
44</html>
45