<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: seckey.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">seckey.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Classes and functions for implementing secret key algorithms. <a href="#details">More...</a></p> <p><a href="seckey_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_block_size.html">FixedBlockSize< N ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Inherited by algorithms with fixed block size. <a href="class_fixed_block_size.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_rounds.html">FixedRounds< R ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Inherited by algorithms with fixed number of rounds. <a href="class_fixed_rounds.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_rounds.html">VariableRounds< D, N, M ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Inherited by algorithms with variable number of rounds. <a href="class_variable_rounds.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html">FixedKeyLength< N, IV_REQ, IV_L ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Inherited by keyed algorithms with fixed key length. <a href="class_fixed_key_length.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_key_length.html">VariableKeyLength< D, N, M, Q, IV_REQ, IV_L ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Inherited by keyed algorithms with variable key length. <a href="class_variable_key_length.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html">SameKeyLengthAs< T, IV_REQ, IV_L ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides key lengths based on another class's key length. <a href="class_same_key_length_as.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_simple_keying_interface_impl.html">SimpleKeyingInterfaceImpl< BASE, INFO ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides a base implementation of <a class="el" href="class_simple_keying_interface.html" title="Interface for algorithms that take byte strings as keys. ">SimpleKeyingInterface</a>. <a href="class_simple_keying_interface_impl.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_block_cipher_impl.html">BlockCipherImpl< INFO, BASE ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides a base implementation of <a class="el" href="class_algorithm.html" title="Interface for all crypto algorithms. ">Algorithm</a> and <a class="el" href="class_simple_keying_interface.html" title="Interface for algorithms that take byte strings as keys. ">SimpleKeyingInterface</a> for block ciphers. <a href="class_block_cipher_impl.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_block_cipher_final.html">BlockCipherFinal< DIR, BASE ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides class member functions to key a block cipher. <a href="class_block_cipher_final.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_message_authentication_code_impl.html">MessageAuthenticationCodeImpl< BASE, INFO ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides a base implementation of <a class="el" href="class_algorithm.html" title="Interface for all crypto algorithms. ">Algorithm</a> and <a class="el" href="class_simple_keying_interface.html" title="Interface for algorithms that take byte strings as keys. ">SimpleKeyingInterface</a> for message authentication codes. <a href="class_message_authentication_code_impl.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_message_authentication_code_final.html">MessageAuthenticationCodeFinal< BASE ></a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides class member functions to key a message authentication code. <a href="class_message_authentication_code_final.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_block_cipher_documentation.html">BlockCipherDocumentation</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher. <a href="struct_block_cipher_documentation.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_symmetric_cipher_documentation.html">SymmetricCipherDocumentation</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides Encryption and Decryption typedefs used by derived classes to implement a symmetric cipher. <a href="struct_symmetric_cipher_documentation.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_authenticated_symmetric_cipher_documentation.html">AuthenticatedSymmetricCipherDocumentation</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Provides Encryption and Decryption typedefs used by derived classes to implement an authenticated encryption cipher. <a href="struct_authenticated_symmetric_cipher_documentation.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ae07b3e99668fc620761b8e0ffd5ba7f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cryptlib_8h.html#a353ccabf5ddc119a6a33e92f7b9961c7">CipherDir</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="seckey_8h.html#ae07b3e99668fc620761b8e0ffd5ba7f6">ReverseCipherDir</a> (<a class="el" href="cryptlib_8h.html#a353ccabf5ddc119a6a33e92f7b9961c7">CipherDir</a> dir)</td></tr> <tr class="memdesc:ae07b3e99668fc620761b8e0ffd5ba7f6"><td class="mdescLeft"> </td><td class="mdescRight">Inverts the cipher's direction. <a href="#ae07b3e99668fc620761b8e0ffd5ba7f6">More...</a><br /></td></tr> <tr class="separator:ae07b3e99668fc620761b8e0ffd5ba7f6"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Classes and functions for implementing secret key algorithms. </p> <p class="definition">Definition in file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p> </div><h2 class="groupheader">Function Documentation</h2> <a id="ae07b3e99668fc620761b8e0ffd5ba7f6"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae07b3e99668fc620761b8e0ffd5ba7f6">◆ </a></span>ReverseCipherDir()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="cryptlib_8h.html#a353ccabf5ddc119a6a33e92f7b9961c7">CipherDir</a> ReverseCipherDir </td> <td>(</td> <td class="paramtype"><a class="el" href="cryptlib_8h.html#a353ccabf5ddc119a6a33e92f7b9961c7">CipherDir</a> </td> <td class="paramname"><em>dir</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Inverts the cipher's direction. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dir</td><td>the cipher's direction </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>DECRYPTION if <a class="el" href="cryptlib_8h.html#a353ccabf5ddc119a6a33e92f7b9961c7">dir</a> is ENCRYPTION, DECRYPTION otherwise </dd></dl> <p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00032">32</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:58:11 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>