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 http-equiv="Content-Style-Type" content="text/css"> 7<title>NETSHA256Init</title> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9</head> 10 11<body> 12 13<h1 align="left">NETSHA256Init</h1> 14<h2>Syntax</h2> 15 16<dl> 17 <dd> 18 <PRE><CODE>#include <revolution/net.h> 19 20void NETSHA256Init( <A href="NETSHA256Context.html">NETSHA256Context</A> *context ); 21</CODE></PRE> 22 </dd> 23</dl><h2>Arguments</h2> 24 25<table border="1" width="100%"> 26 <TR> 27 <TD width="176"><em><strong><font face="Courier New">context</font></strong></em></TD> 28 <TD width="670">Pointer to the context structure to initialize. This structure is used for SHA-256 generation.</TD> 29 </TR> 30 </table> 31<h2>Return Values</h2> 32<p>None.</p> 33<H2>Description</H2> 34<P>This function initializes a context structure of type <A href="NETSHA256Context.html"><CODE>NETSHA256Context</CODE></A> to use for the calculation of SHA-256. Make sure that this function is called before using the <A href="NETSHA256Update.html"><CODE>NETSHA256Update</CODE></A> or <A href="NETSHA256GetDigest.html"><CODE>NETSHA256GetDigest</CODE></A> function.<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.</p> 35<p> 36For details, see the "SHA-256" section of the <a href="hash_overview.html">hash algorithm</a>. 37</P> 38<h2>See Also</h2> 39<P><CODE><A href="NETSHA256Update.html">NETSHA256Update</A><BR><A href="NETSHA256GetDigest.html">NETSHA256GetDigest</A></CODE></P> 40<H2>Revision History</H2> 41<P> 422008/05/07 Initial version.<BR> 43</P> 44<hr><p>CONFIDENTIAL</p></body> 45</html> 46