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>NETAESDecrypt</title>
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9</head>
10
11<body>
12
13<h1 align="left">NETAESDecrypt</h1>
14<h2>C Specification</h2>
15
16<dl>
17  <dd>
18<PRE><CODE>#include &lt;revolution/net.h&gt;
19
20BOOL NETAESDecrypt( <A href="NETAESContext.html">NETAESContext</A> *context, void *dst, const void *src, u32 len );
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 AES encryption context structure.</TD>
29    </TR>
30    <TR>
31<TD width="176"><em><strong><font face="Courier New">dst</font></strong></em></TD>
32<TD width="670">Destination buffer for storing plain text.<br>The start address of the cache must be aligned at a 32-byte boundary.</TD>
33    </TR>
34    <TR>
35<TD width="176"><em><strong><font face="Courier New">src</font></strong></em></TD>
36<TD width="670">Encrypted text data from which plain text is to be generated.<br>The start address of the cache must be aligned at a 32-byte boundary.<font color="red">The same address as the storage location (dst) cannot be specified.</font></TD>
37    </TR>
38    <TR>
39<TD width="176"><em><strong><font face="Courier New">len</font></strong></em></TD>
40<TD width="670">Length of encrypted text.<br>Because block encryption is used, encrypted text must be aligned at a 16-byte boundary.</TD>
41    </TR>
42  </table>
43<h2>Return Values</h2>
44<p>Returns TRUE if decryption is successful. Otherwise, returns FALSE.</p>
45<H2>Description</H2>
46<p>This function decrypts encrypted text, using an AES encryption context. AES encryption context must be generated first by calling the <CODE><A href="NETAESCreate.html">NETAESCreate</A></CODE> function. <br> Restrictions on decryption are the same as those on encryption. For details, see the description of the <CODE><A href="NETAESEncrypt.html">NETAESEncrypt</A></CODE> function.</font>
47</p>
48<h2>See Also</h2>
49<P>
50<A href="NETAESCreate.html">NETAESCreate</A> <A href="NETAESEncrypt.html">NETAESEncrypt</A> <A href="NETAESDelete.html">NETAESDelete</A>
51</P>
52<H2>Revision History</H2>
53<P>
542006/10/27 Revised descriptions.<br>2006/10/12 Initial version.<BR>
55</P>
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58