1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50 <title>nn::crypto::Aes</title> 51 </head> 52 <body> 53 <h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/crypto/Overview.html">crypto</a>::Aes</CODE> Class</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">template <size_t KeySize> 57class Aes : public <a href="../../../nn/crypto/BlockCipher/Overview.html">nn::crypto::BlockCipher</a></pre> 58 </div> 59 <h2>Template Arguments</h2> 60 <div class="section"> 61 <table class="arguments"> 62 <thead> 63 <tr> 64 <th>Name</th> 65 <td>Description</td> 66 </tr> 67 </thead> 68 <tr> 69 <th>KeySize</th> 70 <td>Key size in bytes.</td> 71 </tr> </table> 72 </div> 73 <h2>Description</h2> 74 <div class="section"> 75 <p>Class for implementing AES ciphers.</p><p>Derived class from the <CODE><a href="../../../nn/crypto/BlockCipher/Overview.html">BlockCipher</a></CODE> class. Implements the AES (Rijndael) cipher.</p><p>You should not use the <CODE><a href="../../../nn/crypto/Aes/Encrypt.html">Encrypt</a></CODE> or <CODE><a href="../../../nn/crypto/Aes/Decrypt.html">Decrypt</a></CODE> functions in this class unless you know enough about encryption and have a firm understanding of what you are doing.</p><p>This class is a template class that has the key size as a template parameter. Use the <CODE><a href="../../../nn/crypto/Aes128.html">Aes128</a></CODE>, <CODE><a href="../../../nn/crypto/Aes192.html">Aes192</a></CODE>, or <CODE><a href="../../../nn/crypto/Aes256.html">Aes256</a></CODE> types when actually using.</p><!-- write here --></div> 76 <a name="constant" id="constant"> 77 <h2>Member Constants</h2> 78 <div class="section"> 79 <table class="members"> 80 <tr> 81 <td width="100"> 82 <span class="static_style" title="static">S</span> 83 </td> 84 <th> 85 <span class="argument"><a href="../../../nn/crypto/Aes/BLOCK_SIZE.html"><CODE>BLOCK_SIZE</CODE></a></span> 86 </th> 87 <td width="100">const size_t</td> 88 <td>Constant representing the block size.</td> 89 </tr> 90 <tr> 91 <td width="100"> 92 <span class="static_style" title="static">S</span> 93 </td> 94 <th> 95 <span class="argument"><a href="../../../nn/crypto/Aes/KEY_SIZE.html"><CODE>KEY_SIZE</CODE></a></span> 96 </th> 97 <td width="100">const size_t</td> 98 <td>Constant representing the key size.</td> 99 </tr> </table> 100 </div> 101 </a> <a name="function" id="function"> 102 <h2>Member Functions</h2> 103 <div class="section"> 104 <table class="members"> 105 <tr> 106 <td width="100"> <span class="virtual_style" title="virtual">V</span> 107 </td> 108 <th> 109 <a href="../../../nn/crypto/Aes/GetBlockSize.html"><CODE>GetBlockSize</CODE></a> 110 </th> 111 <td>Gets the block size.</td> 112 </tr> 113 <tr> 114 <td width="100"> <span class="virtual_style" title="virtual">V</span> 115 </td> 116 <th> 117 <a href="../../../nn/crypto/Aes/GetKeySize.html"><CODE>GetKeySize</CODE></a> 118 </th> 119 <td>Gets the key size in bytes.</td> 120 </tr> 121 <tr> 122 <td width="100"> <span class="virtual_style" title="virtual">V</span> 123 </td> 124 <th> 125 <a href="../../../nn/crypto/Aes/SetKey.html"><CODE>SetKey</CODE></a> 126 </th> 127 <td>Sets the key.</td> 128 </tr> 129 <tr> 130 <td width="100"> <span class="virtual_style" title="virtual">V</span> 131 </td> 132 <th> 133 <a href="../../../nn/crypto/Aes/Encrypt.html"><CODE>Encrypt</CODE></a> 134 </th> 135 <td>Encrypts using the AES algorithm.</td> 136 </tr> 137 <tr> 138 <td width="100"> <span class="virtual_style" title="virtual">V</span> 139 </td> 140 <th> 141 <a href="../../../nn/crypto/Aes/Decrypt.html"><CODE>Decrypt</CODE></a> 142 </th> 143 <td>Decrypts using the AES algorithm.</td> 144 </tr> </table> 145 </div> 146 </a> 147 <h2>Class Hierarchy</h2> 148 <div class="section"> 149 <p class="hierarchy"><a href="../../../nn/crypto/BlockCipher/Overview.html">nn::crypto::BlockCipher</a><br /> <b>nn::crypto::Aes</b> 150 </p> 151 </div> 152 <h2>Revision History</h2> 153 <div class="section"> 154 <dl class="history"> 155 <dt>2011/10/27</dt> 156 <dd>Initial version.<br /> 157 </dd> 158 </dl> 159 </div> 160 <hr><p>CONFIDENTIAL</p></body> 161</html>