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 name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../css/nitro.css"> 8<TITLE>nandApp Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>AES Encryption Library Sample Demos</H1> 12<H2>Location</H2> 13<P><CODE>$TwlSDK/build/demos.TWL/aes</CODE></P> 14<H2>Compilation</H2> 15<P>Move to the <CODE>$TwlSDK/build/demos.TWL/aes</CODE> directory and enter the following:</P> 16<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE> 17<P> The SRL executable file and the TEF files with binary information are created in <CODE>$TwlSDK/build/demos.TWL/aes/(sample name)/bin/(platform)/(target)/</CODE>.</P> 18<BLOCKQUOTE><CODE></CODE></BLOCKQUOTE> 19<P> For example:</P> 20<BLOCKQUOTE><CODE>$TwlSDK/build/demos.TWL/aes/ctr/bin/ARM9-TS.HYB/Release/main.srl</CODE></BLOCKQUOTE> 21<P>will be the executable file for the <CODE>ctr</CODE> demo.</P> 22 23<H2>Running the Tool</H2> 24<H3>For TWL/NITRO HYBRID ROMs:</H3> 25<P>If using IS-TWL-DEBUGGER:</P> 26<UL> 27<LI>Load and execute a TLF file with IS-TWL-DEBUGGER. 28<LI>Execute an SRL file with IS-TWL-DEBUGGER. 29<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line. 30</UL> 31<H3>For TWL LIMITED ROMs:</H3> 32<P>If using IS-TWL-DEBUGGER:</P> 33<UL> 34<LI>Load and execute a TLF file with IS-TWL-DEBUGGER 35<LI>Execute an SRL file with IS-TWL-DEBUGGER 36<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line. 37</UL> 38 39<H2>Description</H2> 40<TABLE width="720"> 41 <TBODY> 42 <TR> 43<TH>Name</TH> 44<TH>Directories</TH> 45<TH>Operation</TH> 46 </TR> 47 <TR> 48<TD width="187"><EM><STRONG><CODE>ctr</CODE></STRONG></EM></TD> 49<TD><CODE>demos.TWL</CODE></TD> 50<TD width="525">This demo performs encryption and decryption using <a href="../../aes/api/AES_Ctr.html"><code>AES_Ctr()</code></a>.</TD> 51 <TR> 52<TD width="187"><EM><STRONG><CODE>ccm</CODE></STRONG></EM></TD> 53<TD><CODE>demos.TWL</CODE></TD> 54<TD width="525">This demo performs encryption and decryption using the <a href="../../aes/api/AES_CcmEncryptAndSign.html"><code>AES_CcmEncryptAndSign</code></a> and <a href="../../aes/api/AES_CcmDecryptAndVerify.html"><code>AES_CcmDecryptAndVerify</code></a> functions.</TD> 55 </TR> 56 <TR> 57<TD width="187"><EM><STRONG><CODE>encrypt</CODE></STRONG></EM></TD> 58<TD><CODE>demos.TWL</CODE></TD> 59<TD width="525">This demo performs encryption and decryption using the <a href="../../aes/util/AES_Encrypt.html"><code>AES_Encrypt</code></a> and <a href="../../aes/util/AES_Decrypt.html"><code>AES_Decrypt</code></a> functions.</TD> 60 </TR> 61 <TR> 62<TD width="187"><EM><STRONG><CODE>encrypt-and-sign</CODE></STRONG></EM></TD> 63<TD><CODE>demos.TWL</CODE></TD> 64<TD width="525">This demo performs encryption and decryption using the <a href="../../aes/util/AES_EncryptAndSign.html"><code>AES_EncryptAndSign</code></a> and <a href="../../aes/util/AES_DecryptAndVerify.html"><code>AES_DecryptAndVerify</code></a> functions.</TD> 65 </TR> 66 <TR> 67<TD width="187"><EM><STRONG><CODE>ctr-partial</CODE></STRONG></EM></TD> 68<TD><CODE>demos.TWL</CODE></TD> 69<TD width="525">This demo performs partial decryption of encrypted data in CTR mode.</TD> 70 </TR> 71 <TR> 72<TD width="187"><EM><STRONG><CODE>ctr-compatible</CODE></STRONG></EM></TD> 73<TD><CODE>demos.TWL</CODE></TD> 74<TD width="525">This demo performs encryption and decryption that is compatible with the standard AES cipher in CTR mode.</TD> 75 </TR> 76 <TR> 77<TD width="187"><EM><STRONG><CODE>ccm-compatible</CODE></STRONG></EM></TD> 78<TD><CODE>demos.TWL</CODE></TD> 79<TD width="525">This demo performs encryption and decryption that is compatible with the standard AES cipher in CCM mode.</TD> 80 </TR> 81 </TR> 82 </TBODY> 83</TABLE> 84<H2>Operation</H2> 85<P>The AES library demos will operate normally only in TWL mode.</P> 86<H2>See Also</H2> 87<P> 88</P> 89<H2>Revision History</H2> 90<P> 912007/12/10 Initial version.</P> 92<hr><p>CONFIDENTIAL</p></body> 93</HTML>