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_SwapEndianEach128</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">AES_SwapEndianEach128 <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
21void AES_SwapEndianEach128(const void* src, void* dst, u32 size);
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>src</TH>
31      <TD>Pointer to the source data to copy.</TD>
32    </TR>
33    <TR>
34      <TH>dst</TH>
35      <TD>Pointer to the destination buffer where the data will be copied.. This can specify the same pointer as <span class="argument">src</span>.</TD>
36    </TR>
37    <TR>
38      <TH>size</TH>
39      <TD>Copy size.</TD>
40    </TR>
41  </TBODY>
42</TABLE>
43
44<h2>Return Values</h2>
45<p>
46None.
47</p>
48
49<H2>Description</H2>
50<P>
51Copies a byte array one byte at a time, reversing the order of each 16-byte chunk. The fractional portion is copied in reverse order, but the length reversed is the length of the fractional portion instead of a 16-byte length.
52</p>
53
54<P>
55The input and output values of the TWL-SDK AES library are not compatible with the standard AES algorithm, but by adding certain pre- and post-processing operations, standards-compatible encryption and decryption is possible. For details, see the <a href="../../demos/aes/aesdemos.html">ctr-compatible demo / ccm-compatible demo</a>.
56</p>
57
58<h2>See Also</h2>
59<p><CODE></CODE></p>
60
61<H2>Revision History</H2>
62<P>
632007/12/25 Initial version.
64</P>
65<hr><p>CONFIDENTIAL</p></body>
66</html>
67