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 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>AES_SetKey</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">AES_SetKey <IMG src="../../image/TWL.gif" width="23" height="12" border="0" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19  <pre><CODE>#include &lt;twl/aes.h&gt;
20
21<a href="AESResult.html">AESResult</a> AES_SetKey(const <a href="AESKey.html">AESKey</a>* pKey);
22</CODE></pre>
23</dd>
24</dl>
25
26<h2>Arguments</h2>
27<TABLE border="1" width="100%" class="arguments">
28  <TBODY>
29    <TR>
30      <TH>pKey</TH>
31      <TD>Key to set.</TD>
32    </TR>
33  </TBODY>
34</TABLE>
35
36<h2>Return Values</h2>
37<p>
38Returns <CODE>AES_RESULT_SUCCESS</CODE> if the key was set successfully. Any other return values indicate an error.
39</p>
40
41<H2>Description</H2>
42<P>
43Sets the key used for AES encryption (decryption).
44</p>
45
46<h2>See Also</h2>
47<p><CODE></CODE></p>
48
49<H2>Revision History</H2>
50<P>
512007/12/25 Initial version.
52</P>
53<hr><p>CONFIDENTIAL</p></body>
54</html>
55