1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<title>Hash algorithm</title>
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8</head>
9
10<body>
11
12<h1 align="left">Hash algorithm</h1>
13<h2>C Specification</h2>
14
15<dl>
16  <dd>
17  <PRE><CODE>#include &lt;revolution/net.h&gt;
18
19#define NET_MD5_DIGEST_SIZE 16
20#define NET_SHA1_DIGEST_SIZE 20
21#define	NET_HASH_BLOCK_SIZE 64
22
23</CODE></PRE>
24  </dd>
25</dl>
26<H2>Description</H2>
27<P>The following is a list of hash algorithms supported by the NET library.<BR>
28<table border="1" width="100%">
29    <TR bgcolor="#F0F0FF">
30    <TD>Algorithms</TD>
31    <TD>Block size</TD>
32    <TD>Hash length</TD>
33    <TD>Defined value for the hash length (byte size)</TD>
34    <TD>Context structure</TD>
35    <TD>Comments</TD>
36    </TR>
37    <TR>
38    <TD>MD5</TD>
39    <TD>512-bit</TD>
40    <TD>128-bit</TD>
41    <TD>NET_MD5_DIGEST_SIZE (= 16)</TD>
42    <TD><A href="NETMD5Context.html">NETMD5Context</A></TD>
43    <TD>This algorithm is used to find the message digest value.<br>For details, see RFC (Request For Comments) 1321, which is published by the IETF (Internet Engineering Task Force).</TD>
44    </TR>
45    <TR>
46    <TD>SHA-1</TD>
47    <TD>512-bit</TD>
48    <TD>160-bit</TD>
49    <TD>NET_SHA1_DIGEST_SIZE (= 20)</TD>
50    <TD><A href="NETSHA1Context.html">NETSHA1Context</A></TD>
51    <TD>This algorithm is used to find the message digest value.<br>For details, see RFC (Request for Comments) 3174, which is published by the IETF (Internet Engineering Task Force).</TD>
52    </TR>
53</table>
54</P>
55<h2>See Also</h2>
56<P>
57<A href="NETCalcMD5.html">NETCalcMD5</A> <A href="NETCalcSHA1.html">NETCalcSHA1</A> <A href="NETCalcHMAC.html">NETCalcHMACMD5</A> <A href="NETCalcHMAC.html">NETCalcHMACSHA1</A>
58</P>
59<H2>Revision History</H2>
60<P>
612006/09/01 Initial version.<br>
62</P>
63<hr><p>CONFIDENTIAL</p></body>
64</html>
65