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_SHA1Update</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MATH_SHA1Update <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_SHA1Update( <A href="MATHSHA1Context.html">MATHSHA1Context</A> *context, const void* input, u32 length );
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 used for SHA-1 generation.</TD>
30    </TR>
31    <TR>
32      <TD width="176"><em><strong><font face="Courier New">input</font></strong></em></TD>
33      <TD width="670">Pointer to the input data.</TD>
34    </TR>
35    <TR>
36      <TD width="176"><em><strong><font face="Courier New">length</font></strong></em></TD>
37      <TD width="670">Size of the input data.</TD>
38    </TR>
39  </table>
40<h2>Return Values</h2>
41<p>None.</p>
42<H2>Description</H2>
43<P>This function updates the SHA-1 digest value based on the input data. You must initialize the <CODE>context</CODE> argument in advance using the <CODE><A href="MATH_SHA1Init.html">MATH_SHA1Init</A></CODE> function. Call this function as many times as needed, and then use the <CODE><A href="MATH_SHA1GetHash.html">MATH_SHA1GetHash</A></CODE> 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).
44</P>
45<h2>See Also</h2>
46<P><a href="MATH_SHA1Init.html"><code>MATH_SHA1Init</code></a>, <a href="MATH_SHA1GetHash.html"><code>MATH_SHA1GetHash</code></a></P>
47<H2>Revision History</H2>
48<P>
492005/04/01 Initial version.
50</P>
51<hr><p>CONFIDENTIAL</p></body>
52</html>
53