<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crypto++: SAFER_K class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.7 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>SAFER_K Class Reference</h1><code>#include <<a class="el" href="safer_8h-source.html">safer.h</a>></code> <p> <p>Inheritance diagram for SAFER_K: <p><center><img src="class_s_a_f_e_r___k.png" usemap="#SAFER_K_map" border="0" alt=""></center> <map name="SAFER_K_map"> <area href="struct_s_a_f_e_r___k___info.html" alt="SAFER_K_Info" shape="rect" coords="223,56,436,80"> <area href="class_s_a_f_e_r.html" alt="SAFER" shape="rect" coords="446,56,659,80"> <area href="struct_block_cipher_documentation.html" alt="BlockCipherDocumentation" shape="rect" coords="669,56,882,80"> <area href="class_fixed_block_size.html" alt="FixedBlockSize< 8 >" shape="rect" coords="0,0,213,24"> <area href="class_variable_key_length.html" alt="VariableKeyLength< 16, 8, 16, 8 >" shape="rect" coords="223,0,436,24"> <area href="class_variable_rounds.html" alt="VariableRounds< 10, 1, 13 >" shape="rect" coords="446,0,659,24"> </map> <a href="class_s_a_f_e_r___k-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <a href="http://www.weidai.com/scan-mirror/cs.html#SAFER-K">SAFER-K</a> <p> <p> Definition at line <a class="el" href="safer_8h-source.html#l00049">49</a> of file <a class="el" href="safer_8h-source.html">safer.h</a>.<table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_s_a_f_e_r___kw0" doxytag="SAFER_K::Encryption" ></a> typedef <a class="el" href="class_block_cipher_final.html">BlockCipherFinal</a><<br> ENCRYPTION, Enc > </td><td class="memItemRight" valign=bottom><a class="el" href="class_s_a_f_e_r___k.html#_s_a_f_e_r___kw0">Encryption</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">implements the <a class="el" href="class_block_cipher.html">BlockCipher</a> interface <br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_s_a_f_e_r___kw1" doxytag="SAFER_K::Decryption" ></a> typedef <a class="el" href="class_block_cipher_final.html">BlockCipherFinal</a><<br> DECRYPTION, Dec > </td><td class="memItemRight" valign=bottom><a class="el" href="class_s_a_f_e_r___k.html#_s_a_f_e_r___kw1">Decryption</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">implements the <a class="el" href="class_block_cipher.html">BlockCipher</a> interface <br><br></td></tr> <tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_s_a_f_e_r___k___infoe0" doxytag="SAFER_K::StaticAlgorithmName" ></a> const char * </td><td class="memItemRight" valign=bottom><b>StaticAlgorithmName</b> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_s_a_f_e_r___k___infoe1" doxytag="SAFER_K::DefaultRounds" ></a> unsigned int </td><td class="memItemRight" valign=bottom><b>DefaultRounds</b> (unsigned int keylength)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_variable_key_lengthe0" doxytag="SAFER_K::StaticGetValidKeyLength" ></a> unsigned int </td><td class="memItemRight" valign=bottom><b>StaticGetValidKeyLength</b> (unsigned int n)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_variable_roundse0" doxytag="SAFER_K::StaticGetDefaultRounds" ></a> unsigned int </td><td class="memItemRight" valign=bottom><b>StaticGetDefaultRounds</b> (unsigned int keylength)</td></tr> <tr><td colspan=2><br><h2>Static Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_variable_roundsf0" doxytag="SAFER_K::AssertValidRounds" ></a> void </td><td class="memItemRight" valign=bottom><b>AssertValidRounds</b> (unsigned int rounds)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_variable_roundsf1" doxytag="SAFER_K::CheckedSetKey" ></a> void </td><td class="memItemRight" valign=bottom><b>CheckedSetKey</b> (T *obj, <a class="el" href="cryptlib_8h.html#a11">CipherDir</a> dir, const byte *key, unsigned int length, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &param)</td></tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="safer_8h-source.html">safer.h</a></ul> <hr size="1"><address style="align: right;"><small>Generated on Sun Nov 7 08:24:09 2004 for Crypto++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address> </body> </html>