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

📄 class_p_k___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_CryptoSystem 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_CryptoSystem 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_CryptoSystem:<p><center><img src="class_p_k___crypto_system.png" usemap="#PK_CryptoSystem_map" border="0" alt=""></center><map name="PK_CryptoSystem_map"><area href="class_p_k___decryptor.html" alt="PK_Decryptor" shape="rect" coords="287,56,851,80"><area href="class_p_k___encryptor.html" alt="PK_Encryptor" shape="rect" coords="2009,56,2573,80"><area href="class_p_k___fixed_length_crypto_system.html" alt="PK_FixedLengthCryptoSystem" shape="rect" coords="4018,56,4582,80"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< SCHEME_OPTIONS::Element > >" shape="rect" coords="0,112,564,136"><area href="class_p_k___fixed_length_decryptor.html" alt="PK_FixedLengthDecryptor" shape="rect" coords="574,112,1138,136"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< SCHEME_OPTIONS::Element > >" shape="rect" coords="1722,112,2286,136"><area href="class_p_k___fixed_length_encryptor.html" alt="PK_FixedLengthEncryptor" shape="rect" coords="2296,112,2860,136"><area href="class_p_k___fixed_length_decryptor.html" alt="PK_FixedLengthDecryptor" shape="rect" coords="3444,112,4008,136"><area href="class_p_k___fixed_length_encryptor.html" alt="PK_FixedLengthEncryptor" shape="rect" coords="4592,112,5156,136"><area href="class_d_l___decryptor_base.html" alt="DL_DecryptorBase< SCHEME_OPTIONS::Element >" shape="rect" coords="0,168,564,192"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthDecryptor, DL_PrivateKey< Integer > >" shape="rect" coords="1148,168,1712,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse > >" shape="rect" coords="1148,224,1712,248"><area href="class_d_l___encryptor_base.html" alt="DL_EncryptorBase< SCHEME_OPTIONS::Element >" shape="rect" coords="1722,168,2286,192"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthEncryptor, DL_PublicKey< Integer > >" shape="rect" coords="2870,168,3434,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction > >" shape="rect" coords="2870,224,3434,248"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthDecryptor, DL_PrivateKey< Integer > >" shape="rect" coords="4018,168,4582,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse > >" shape="rect" coords="4018,224,4582,248"><area href="class_d_l___crypto_system_base.html" alt="DL_CryptoSystemBase< PK_FixedLengthEncryptor, DL_PublicKey< Integer > >" shape="rect" coords="5166,168,5730,192"><area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction > >" shape="rect" coords="5166,224,5730,248"></map><a href="class_p_k___crypto_system-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>interface for public-key encryptors and decryptors <p>This class provides an interface common to encryptors and decryptors for querying their plaintext and ciphertext lengths. <p><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01101">1101</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>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><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">MaxPlaintextLength</a> (unsigned int cipherTextLength) const=0</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_4a13"></a><em><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><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">CiphertextLength</a> (unsigned int plainTextLength) const=0</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_4a15"></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_4a13" doxytag="PK_CryptoSystem::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"> virtual unsigned int PK_CryptoSystem::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> [pure 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>Implemented in <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">PK_FixedLengthCryptoSystem</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_4a15" doxytag="PK_CryptoSystem::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"> virtual unsigned int PK_CryptoSystem::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> [pure 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>Implemented in <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">PK_FixedLengthCryptoSystem</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="cryptlib_8h-source.html">cryptlib.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:35:18 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 + -