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_AddToCounter</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">AES_AddToCounter <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 <twl/aes.h> 20 21void AES_AddToCounter(<a href="AESCounter.html">AESCounter</a>* pCounter, u32 value); 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>pCounter</TH> 31 <TD>Pointer to the number to add to.</TD> 32 </TR> 33 <TR> 34 <TH>value</TH> 35 <TD>Number to add.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39 40<h2>Return Values</h2> 41<p> 42None. 43</p> 44 45<H2>Description</H2> 46<P> 47Adds a numerical value to the AES counter. 48</p> 49 50<P> 51If you use this function, you will be able to decrypt only a portion of the data that was encrypted in CTR mode. For details, see the <a href="../../demos/aes/aesdemos.html"><CODE>ctr-partial</CODE> demo</a>. 52</p> 53 54<h2>See Also</h2> 55<p><CODE></CODE></p> 56 57<H2>Revision History</H2> 58<P> 592007/12/25 Initial version. 60</P> 61<hr><p>CONFIDENTIAL</p></body> 62</html> 63