📄 class_p_k___encryptor.html
字号:
<p><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>CiphertextLength(plaintextLength) != 0 (i.e., plaintext isn't too long) <p>size of ciphertext == CiphertextLength(plaintextLength) </dd></dl><p>Implemented in <a class="el" href="class_t_f___encryptor_base.html#fa1feef1aeea65276bba4788f5d7b0b4">TF_EncryptorBase</a>, <a class="el" href="class_d_l___encryptor_base.html#c16e4aa7be7b424de8e9816810b210c7">DL_EncryptorBase< T ></a>, and <a class="el" href="class_d_l___encryptor_base.html#c16e4aa7be7b424de8e9816810b210c7">DL_EncryptorBase< SCHEME_OPTIONS::Element ></a>.</div></div><p><a class="anchor" name="558cc0f957c7e1e448a746033549964d"></a><!-- doxytag: member="PK_Encryptor::CreateEncryptionFilter" ref="558cc0f957c7e1e448a746033549964d" args="(RandomNumberGenerator &rng, BufferedTransformation *attachment=NULL, const NameValuePairs &parameters=g_nullNameValuePairs) const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * PK_Encryptor::CreateEncryptionFilter </td> <td>(</td> <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="paramname"> <em>rng</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * </td> <td class="paramname"> <em>attachment</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="paramname"> <em>parameters</em> = <code><a class="el" href="cryptlib_8h.html#d3205973dd1afa14090a683154c1109c">g_nullNameValuePairs</a></code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>create a new encryption filter <p><dl class="note" compact><dt><b>Note:</b></dt><dd>The caller is responsible for deleting the returned pointer. <p>Encoding parameters should be passed in the "EP" channel. </dd></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00596">596</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.</div></div><p><a class="anchor" name="a4a3552c933a36b3aea26f31d00bee9b"></a><!-- doxytag: member="PK_Encryptor::MaxPlaintextLength" ref="a4a3552c933a36b3aea26f31d00bee9b" args="(size_t ciphertextLength) const =0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual size_t PK_CryptoSystem::MaxPlaintextLength </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>ciphertextLength</em> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>maximum length of plaintext for a given ciphertext length <p><dl class="note" 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_impl.html#a458766069b12b977e7483ab8dfbcba9">PK_FixedLengthCryptoSystemImpl< PK_Encryptor ></a>, <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html#a458766069b12b977e7483ab8dfbcba9">PK_FixedLengthCryptoSystemImpl< PK_Decryptor ></a>, <a class="el" href="class_d_l___crypto_system_base.html#3deffe3347f225eb0483c7bf3bedc495">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< SCHEME_OPTIONS::Element > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#3deffe3347f225eb0483c7bf3bedc495">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< T > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#3deffe3347f225eb0483c7bf3bedc495">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< SCHEME_OPTIONS::Element > ></a>, and <a class="el" href="class_d_l___crypto_system_base.html#3deffe3347f225eb0483c7bf3bedc495">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< T > ></a>.</div></div><p><a class="anchor" name="bf04a4e08fb69a1a118bad3e998ef6a6"></a><!-- doxytag: member="PK_Encryptor::CiphertextLength" ref="bf04a4e08fb69a1a118bad3e998ef6a6" args="(size_t plaintextLength) const =0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual size_t PK_CryptoSystem::CiphertextLength </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>plaintextLength</em> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>calculate length of ciphertext given length of plaintext <p><dl class="note" 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_impl.html#4bdffbbeb046825f357331cbeb42956e">PK_FixedLengthCryptoSystemImpl< PK_Encryptor ></a>, <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html#4bdffbbeb046825f357331cbeb42956e">PK_FixedLengthCryptoSystemImpl< PK_Decryptor ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c738aee0b0262899ad33379da8798c6a">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< SCHEME_OPTIONS::Element > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c738aee0b0262899ad33379da8798c6a">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< T > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c738aee0b0262899ad33379da8798c6a">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< SCHEME_OPTIONS::Element > ></a>, and <a class="el" href="class_d_l___crypto_system_base.html#c738aee0b0262899ad33379da8798c6a">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< T > ></a>.</div></div><p><a class="anchor" name="294c4664af51a72112db1f04e6ef9049"></a><!-- doxytag: member="PK_Encryptor::ParameterSupported" ref="294c4664af51a72112db1f04e6ef9049" args="(const char *name) const =0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool PK_CryptoSystem::ParameterSupported </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>this object supports the use of the parameter with the given name <p>some possible parameter names: EncodingParameters, KeyDerivationParameters <p>Implemented in <a class="el" href="class_t_f___crypto_system_base.html#7e3d9b64229a0eeb41208425898c3be4">TF_CryptoSystemBase< PK_Decryptor, TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod > ></a>, <a class="el" href="class_t_f___crypto_system_base.html#7e3d9b64229a0eeb41208425898c3be4">TF_CryptoSystemBase< PK_Encryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c510f55af473e85547237fdb39e441e1">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< SCHEME_OPTIONS::Element > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c510f55af473e85547237fdb39e441e1">DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< T > ></a>, <a class="el" href="class_d_l___crypto_system_base.html#c510f55af473e85547237fdb39e441e1">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< SCHEME_OPTIONS::Element > ></a>, and <a class="el" href="class_d_l___crypto_system_base.html#c510f55af473e85547237fdb39e441e1">DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< T > ></a>.</div></div><p><a class="anchor" name="f415eacc974d297a03c4e7de710e5b4e"></a><!-- doxytag: member="PK_Encryptor::FixedCiphertextLength" ref="f415eacc974d297a03c4e7de710e5b4e" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual size_t PK_CryptoSystem::FixedCiphertextLength </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline, virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>return fixed ciphertext length, if one exists, otherwise return 0 <p><dl class="note" compact><dt><b>Note:</b></dt><dd>"Fixed" here means length of ciphertext does not depend on length of plaintext. It usually does depend on the key length. </dd></dl><p>Reimplemented in <a class="el" href="class_t_f___crypto_system_base.html#91638e029e369d985f7858ad7daf2019">TF_CryptoSystemBase< PK_Decryptor, TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod > ></a>, and <a class="el" href="class_t_f___crypto_system_base.html#91638e029e369d985f7858ad7daf2019">TF_CryptoSystemBase< PK_Encryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > ></a>.<p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01165">1165</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="cryptlib_8h-source.html#l01223">PK_Decryptor::FixedLengthDecrypt()</a>.</div></div><p><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="text-align: right;"><small>Generated on Fri Jun 1 11:11:44 2007 for Crypto++ by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -