<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: gcm_aes.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>gcm_aes.h File Reference</h1> <p> <code>#include <stdlib.h></code><br> <code>#include <openssl/aes.h></code><br> <code>#include "<a class="el" href="brg__types_8h-source.html">brg_types.h</a>"</code><br> <p> <a href="gcm__aes_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="gcm__aes_8h.html#8fd2a692114a3f935fab8a0af8c6397f">USE_AES_ENCRYPT</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="gcm__aes_8h.html#c1cc832f910e42305beded90e150b56f">AES_RETURN</a> VOID_RETURN</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="gcm__aes_8h.html#3fe2bc67172e2479a0b178d134b076bc">aes_encrypt_ctx</a> AES_KEY</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="gcm__aes_8h.html#13c30517f0dd832d7027e2d2a39d055b">aes_encrypt</a> AES_encrypt</td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">AES_RETURN </td><td class="memItemRight" valign="bottom"><a class="el" href="gcm__aes_8h.html#3950edc98e2068c4d3399a40bd3b1155">aes_encrypt_key</a> (const unsigned char *key, int key_len, aes_encrypt_ctx *cx)</td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="13c30517f0dd832d7027e2d2a39d055b"></a><!-- doxytag: member="gcm_aes.h::aes_encrypt" ref="13c30517f0dd832d7027e2d2a39d055b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define aes_encrypt AES_encrypt </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="gcm__aes_8h-source.html#l00067">67</a> of file <a class="el" href="gcm__aes_8h-source.html">gcm_aes.h</a>.</p> </div> </div><p> <a class="anchor" name="3fe2bc67172e2479a0b178d134b076bc"></a><!-- doxytag: member="gcm_aes.h::aes_encrypt_ctx" ref="3fe2bc67172e2479a0b178d134b076bc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define aes_encrypt_ctx AES_KEY </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="gcm__aes_8h-source.html#l00059">59</a> of file <a class="el" href="gcm__aes_8h-source.html">gcm_aes.h</a>.</p> </div> </div><p> <a class="anchor" name="c1cc832f910e42305beded90e150b56f"></a><!-- doxytag: member="gcm_aes.h::AES_RETURN" ref="c1cc832f910e42305beded90e150b56f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define AES_RETURN VOID_RETURN </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="gcm__aes_8h-source.html#l00055">55</a> of file <a class="el" href="gcm__aes_8h-source.html">gcm_aes.h</a>.</p> </div> </div><p> <a class="anchor" name="8fd2a692114a3f935fab8a0af8c6397f"></a><!-- doxytag: member="gcm_aes.h::USE_AES_ENCRYPT" ref="8fd2a692114a3f935fab8a0af8c6397f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define USE_AES_ENCRYPT </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="gcm__aes_8h-source.html#l00053">53</a> of file <a class="el" href="gcm__aes_8h-source.html">gcm_aes.h</a>.</p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="3950edc98e2068c4d3399a40bd3b1155"></a><!-- doxytag: member="gcm_aes.h::aes_encrypt_key" ref="3950edc98e2068c4d3399a40bd3b1155" args="(const unsigned char *key, int key_len, aes_encrypt_ctx *cx)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">AES_RETURN aes_encrypt_key </td> <td>(</td> <td class="paramtype">const unsigned char * </td> <td class="paramname"> <em>key</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>key_len</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">aes_encrypt_ctx * </td> <td class="paramname"> <em>cx</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:49 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>