📄 class_t_f___decryptor_base.html
字号:
</td> <td><p>decrypt a byte string, and return the length of plaintext <p><dl compact><dt><b>Precondition:</b></dt><dd>size of plainText == MaxPlainTextLength(cipherTextLength) bytes. </dd></dl><dl compact><dt><b>Returns:</b></dt><dd>the actual length of the plaintext, or 0 if decryption fails.</dd></dl><p>Implements <a class="el" href="class_p_k___decryptor.html#_p_k___decryptora0">PK_Decryptor</a>.<p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00611">611</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_p_k___fixed_length_decryptor.html#_t_f___crypto_system_base_3_01_p_k___fixed_length_decryptor_00_01_t_f___base_3_01_trapdoor_function_inverse_01_4_01_4a2">PK_FixedLengthDecryptor::FixedLengthDecrypt()</a>. </td> </tr></table><a name="_t_f___private_object_impl_3_01_t_f___decryptor_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14" doxytag="TF_DecryptorBase::CreateDecryptionFilter"></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"> <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * PK_Decryptor::CreateDecryptionFilter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * </td> <td class="mdname1" valign="top" nowrap> <em>attachment</em> = NULL </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>create a new decryption filter <p><dl compact><dt><b>Note:</b></dt><dd>caller is responsible for deleting the returned pointer</dd></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00551">551</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_4a13" doxytag="TF_DecryptorBase::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">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>cipherTextLength</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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_4a14" doxytag="TF_DecryptorBase::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">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>cipherTextLength</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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_4a15" doxytag="TF_DecryptorBase::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">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>plainTextLength</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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><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="TF_DecryptorBase::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">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>plainTextLength</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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="pubkey_8h-source.html">pubkey.h</a><li><a class="el" href="pubkey_8cpp-source.html">pubkey.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:35:41 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 + -