⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_p_k___fixed_length_crypto_system.html

📁 Crypto++是一个非常强大的密码学库,主要是功能全
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Crypto++: PK_FixedLengthCryptoSystem class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.2 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><h1>PK_FixedLengthCryptoSystem Class Reference</h1><code>#include &lt;<a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>&gt;</code><p><p>Inheritance diagram for PK_FixedLengthCryptoSystem:<p><center><img src="class_p_k___fixed_length_crypto_system.png" usemap="#PK_FixedLengthCryptoSystem_map" border="0" alt=""></center><map name="PK_FixedLengthCryptoSystem_map"><area href="class_p_k___crypto_system.html" alt="PK_CryptoSystem" shape="rect" coords="1120,0,1857,24"><area href="class_p_k___fixed_length_decryptor.html" alt="PK_FixedLengthDecryptor" shape="rect" coords="373,112,1110,136"><area href="class_p_k___fixed_length_encryptor.html" alt="PK_FixedLengthEncryptor" shape="rect" coords="1867,112,2604,136"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthDecryptor, DL_PrivateKey< Integer > >" shape="rect" coords="0,168,737,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse > >" shape="rect" coords="747,168,1484,192"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthEncryptor, DL_PublicKey< Integer > >" shape="rect" coords="1494,168,2231,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction > >" shape="rect" coords="2241,168,2978,192"><area href="class_d_l___decryptor_base.html" alt="DL_DecryptorBase< Integer, PK_FixedLengthDecryptor >" shape="rect" coords="0,224,737,248"><area href="class_t_f___decryptor_base.html" alt="TF_DecryptorBase" shape="rect" coords="747,224,1484,248"><area href="class_d_l___encryptor_base.html" alt="DL_EncryptorBase< Integer, PK_FixedLengthEncryptor >" shape="rect" coords="1494,224,2231,248"><area href="class_t_f___encryptor_base.html" alt="TF_EncryptorBase" shape="rect" coords="2241,224,2978,248"><area href="class_d_l___object_impl_base.html" alt="DL_ObjectImplBase< DL_DecryptorBase< Integer, PK_FixedLengthDecryptor >, SchemeOptions, SchemeOptions::PrivateKey >" shape="rect" coords="0,336,737,360"><area href="class_t_f___object_impl_base.html" alt="TF_ObjectImplBase< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey >" shape="rect" coords="747,336,1484,360"><area href="class_d_l___object_impl_base.html" alt="DL_ObjectImplBase< DL_EncryptorBase< Integer, PK_FixedLengthEncryptor >, SchemeOptions, SchemeOptions::PublicKey >" shape="rect" coords="1494,336,2231,360"><area href="class_t_f___object_impl_base.html" alt="TF_ObjectImplBase< TF_EncryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PublicKey >" shape="rect" coords="2241,336,2978,360"><area href="class_t_f___object_impl.html" alt="TF_ObjectImpl< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey >" shape="rect" coords="747,392,1484,416"><area href="class_t_f___object_impl.html" alt="TF_ObjectImpl< TF_EncryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PublicKey >" shape="rect" coords="2241,392,2978,416"><area href="class_t_f___private_object_impl.html" alt="TF_PrivateObjectImpl< TF_DecryptorBase, SCHEME_OPTIONS >" shape="rect" coords="747,448,1484,472"><area href="class_t_f___public_object_impl.html" alt="TF_PublicObjectImpl< TF_EncryptorBase, SCHEME_OPTIONS >" shape="rect" coords="2241,448,2978,472"><area href="class_t_f___decryptor_impl.html" alt="TF_DecryptorImpl< SCHEME_OPTIONS >" shape="rect" coords="747,504,1484,528"><area href="class_t_f___encryptor_impl.html" alt="TF_EncryptorImpl< SCHEME_OPTIONS >" shape="rect" coords="2241,504,2978,528"></map><a href="class_p_k___fixed_length_crypto_system-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>interface for encryptors and decryptors with fixed length ciphertext <p>A simplified interface is provided for crypto systems (such as <a class="el" href="struct_r_s_a.html">RSA</a>) whose ciphertext length and maximum plaintext length depend only on the key. <p><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01167">1167</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___fixed_length_encryptora12" doxytag="PK_FixedLengthCryptoSystem::FixedMaxPlaintextLength"></a>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><b>FixedMaxPlaintextLength</b> () const=0</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___fixed_length_encryptora13" doxytag="PK_FixedLengthCryptoSystem::FixedCiphertextLength"></a>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><b>FixedCiphertextLength</b> () const=0</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___fixed_length_crypto_system.html#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14">MaxPlaintextLength</a> (unsigned int cipherTextLength) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">maximum length of plaintext for a given ciphertext length </em> <a href="#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14"></a><em><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___fixed_length_crypto_system.html#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a16">CiphertextLength</a> (unsigned int plainTextLength) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">calculate length of ciphertext given length of plaintext </em> <a href="#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a16"></a><em><br><br></td></tr></table><hr><h2>Member Function Documentation</h2><a name="_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14" doxytag="PK_FixedLengthCryptoSystem::MaxPlaintextLength"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> unsigned int PK_FixedLengthCryptoSystem::MaxPlaintextLength </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>cipherTextLength</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>maximum length of plaintext for a given ciphertext length <p><dl compact><dt><b>Note:</b></dt><dd>This function returns 0 if cipherTextLength is not valid (too long or too short). </dd></dl><p>Implements <a class="el" href="class_p_k___crypto_system.html#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a13">PK_CryptoSystem</a>.<p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00595">595</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.    </td>  </tr></table><a name="_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a16" doxytag="PK_FixedLengthCryptoSystem::CiphertextLength"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> unsigned int PK_FixedLengthCryptoSystem::CiphertextLength </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>plainTextLength</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>calculate length of ciphertext given length of plaintext <p><dl compact><dt><b>Note:</b></dt><dd>This function returns 0 if plainTextLength is not valid (too long). </dd></dl><p>Implements <a class="el" href="class_p_k___crypto_system.html#_t_f___public_object_impl_3_01_t_f___encryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a15">PK_CryptoSystem</a>.<p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00603">603</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="cryptlib_8h-source.html">cryptlib.h</a><li><a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:35:20 2003 for Crypto++ by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -