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

📄 class_t_f___encryptor_impl.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls <a class="el" href="class_asymmetric_algorithm.html#d99d55413166b69a0a12e10d111926c8" title="returns a reference to the crypto material used by this object">AccessMaterial()</a>.Load(bt) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d704079890783422b0a44653480ab83"></a><!-- doxytag: member="TF_EncryptorImpl::DEREncode" ref="2d704079890783422b0a44653480ab83" args="(BufferedTransformation &amp;bt) const " -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_asymmetric_algorithm.html#2d704079890783422b0a44653480ab83">DEREncode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls <a class="el" href="class_asymmetric_algorithm.html#eafe2b12d8353b6c639be41b57ef25de" title="returns a const reference to the crypto material used by this object">GetMaterial()</a>.Save(bt) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0016ba2d505c23aa85aad49e6c19bb7"></a><!-- doxytag: member="TF_EncryptorImpl::Clone" ref="d0016ba2d505c23aa85aad49e6c19bb7" args="() const" -->virtual <a class="el" href="class_clonable.html">Clonable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clonable.html#d0016ba2d505c23aa85aad49e6c19bb7">Clone</a> () const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this is not implemented by most classes yet <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="4d608152f1b6ef03772d9b9616d6ab86"></a><!-- doxytag: member="TF_EncryptorImpl::StaticAlgorithmName" ref="4d608152f1b6ef03772d9b9616d6ab86" args="()" -->static std::string __cdecl&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_algorithm_impl.html#4d608152f1b6ef03772d9b9616d6ab86">StaticAlgorithmName</a> ()</td></tr><tr><td colspan="2"><br><h2>Protected Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33e2d6c0fbb715a5255edd5e84a849fb"></a><!-- doxytag: member="TF_EncryptorImpl::TrapdoorFunctionInterface" ref="33e2d6c0fbb715a5255edd5e84a849fb" args="" -->typedef <a class="el" href="class_randomized_trapdoor_function.html">RandomizedTrapdoorFunction</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___base.html#33e2d6c0fbb715a5255edd5e84a849fb">TrapdoorFunctionInterface</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06b4d20aa32c616a1d0d2b8bee909436"></a><!-- doxytag: member="TF_EncryptorImpl::MessageEncodingInterface" ref="06b4d20aa32c616a1d0d2b8bee909436" args="" -->typedef <a class="el" href="class_p_k___encryption_message_encoding_method.html">PK_EncryptionMessageEncodingMethod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___base.html#06b4d20aa32c616a1d0d2b8bee909436">MessageEncodingInterface</a></td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b080803c6d7ac0b15a2a0681fe079f6"></a><!-- doxytag: member="TF_EncryptorImpl::GetMessageEncodingInterface" ref="5b080803c6d7ac0b15a2a0681fe079f6" args="() const" -->const <a class="el" href="class_p_k___encryption_message_encoding_method.html">TF_EncryptorBase::MessageEncodingInterface</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___object_impl_base.html#5b080803c6d7ac0b15a2a0681fe079f6">GetMessageEncodingInterface</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d002a63639d754a3c593a84313f9570c"></a><!-- doxytag: member="TF_EncryptorImpl::GetTrapdoorFunctionBounds" ref="d002a63639d754a3c593a84313f9570c" args="() const" -->const <a class="el" href="class_trapdoor_function_bounds.html">TrapdoorFunctionBounds</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___object_impl_base.html#d002a63639d754a3c593a84313f9570c">GetTrapdoorFunctionBounds</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbdd57f1d500ceacf37cbbf92f2b8838"></a><!-- doxytag: member="TF_EncryptorImpl::GetTrapdoorFunctionInterface" ref="bbdd57f1d500ceacf37cbbf92f2b8838" args="() const" -->const <a class="el" href="class_randomized_trapdoor_function.html">TF_EncryptorBase::TrapdoorFunctionInterface</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___object_impl_base.html#bbdd57f1d500ceacf37cbbf92f2b8838">GetTrapdoorFunctionInterface</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f75ba88e6b1362ae54884a5272a65aeb"></a><!-- doxytag: member="TF_EncryptorImpl::GetHashIdentifier" ref="f75ba88e6b1362ae54884a5272a65aeb" args="() const" --><a class="el" href="pubkey_8h.html#ef874ed3f2d212ac4629255c8ef86dd0">HashIdentifier</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___object_impl_base.html#f75ba88e6b1362ae54884a5272a65aeb">GetHashIdentifier</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97acdc1ed83c0c038ba52477947c9f85"></a><!-- doxytag: member="TF_EncryptorImpl::GetDigestSize" ref="97acdc1ed83c0c038ba52477947c9f85" args="() const" -->size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___object_impl_base.html#97acdc1ed83c0c038ba52477947c9f85">GetDigestSize</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ad757b5d844b247b0f40969ab5d5957"></a><!-- doxytag: member="TF_EncryptorImpl::PaddedBlockByteLength" ref="5ad757b5d844b247b0f40969ab5d5957" args="() const" -->size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___crypto_system_base.html#5ad757b5d844b247b0f40969ab5d5957">PaddedBlockByteLength</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb04a40679e4c4ec5a0eb00b85615d56"></a><!-- doxytag: member="TF_EncryptorImpl::PaddedBlockBitLength" ref="bb04a40679e4c4ec5a0eb00b85615d56" args="() const" -->size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___crypto_system_base.html#bb04a40679e4c4ec5a0eb00b85615d56">PaddedBlockBitLength</a> () const</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="fa1feef1aeea65276bba4788f5d7b0b4"></a><!-- doxytag: member="TF_EncryptorImpl::Encrypt" ref="fa1feef1aeea65276bba4788f5d7b0b4" args="(RandomNumberGenerator &amp;rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &amp;parameters=g_nullNameValuePairs) const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void TF_EncryptorBase::Encrypt           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;&nbsp;</td>          <td class="paramname"> <em>rng</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const byte *&nbsp;</td>          <td class="paramname"> <em>plaintext</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">size_t&nbsp;</td>          <td class="paramname"> <em>plaintextLength</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">byte *&nbsp;</td>          <td class="paramname"> <em>ciphertext</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>          <td class="paramname"> <em>parameters</em> = <code><a class="el" href="cryptlib_8h.html#d3205973dd1afa14090a683154c1109c">g_nullNameValuePairs</a></code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"> const<code> [virtual, inherited]</code></td>        </tr>      </table></div><div class="memdoc"><p>encrypt a byte string <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>Implements <a class="el" href="class_p_k___encryptor.html#42361bf7692153da9437802df4064258">PK_Encryptor</a>.<p>Definition at line <a class="el" href="pubkey_8cpp-source.html#l00145">145</a> of file <a class="el" href="pubkey_8cpp-source.html">pubkey.cpp</a>.<p>References <a class="el" href="cryptlib_8h-source.html#l00348">Algorithm::AlgorithmName()</a>, RandomizedTrapdoorFunction::ApplyRandomizedFunction(), <a class="el" href="integer_8cpp-source.html#l03112">Integer::Encode()</a>, <a class="el" href="pubkey_8h-source.html#l00158">TF_CryptoSystemBase&lt; PK_Encryptor, TF_Base&lt; RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod &gt; &gt;::FixedCiphertextLength()</a>, <a class="el" href="pubkey_8h-source.html#l00157">TF_CryptoSystemBase&lt; PK_Encryptor, TF_Base&lt; RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod &gt; &gt;::FixedMaxPlaintextLength()</a>, PK_EncryptionMessageEncodingMethod::Pad(), <a class="el" href="pubkey_8h-source.html#l00162">TF_CryptoSystemBase&lt; PK_Encryptor, TF_Base&lt; RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod &gt; &gt;::PaddedBlockBitLength()</a>, <a class="el" href="pubkey_8h-source.html#l00161">TF_CryptoSystemBase&lt; PK_Encryptor, TF_Base&lt; RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod &gt; &gt;::PaddedBlockByteLength()</a>, and <a class="el" href="secblock_8h-source.html#l00336">SecBlock&lt; T, A &gt;::size()</a>.</div></div><p><a class="anchor" name="7e3d9b64229a0eeb41208425898c3be4"></a><!-- doxytag: member="TF_EncryptorImpl::ParameterSupported" ref="7e3d9b64229a0eeb41208425898c3be4" args="(const char *name) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">bool <a class="el" href="class_t_f___crypto_system_base.html">TF_CryptoSystemBase</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a> , <a class="el" href="class_t_f___base.html">TF_Base</a>&lt; <a class="el" href="class_randomized_trapdoor_function.html">RandomizedTrapdoorFunction</a>, <a class="el" href="class_p_k___encryption_message_encoding_method.html">PK_EncryptionMessageEncodingMethod</a> &gt;  &gt;::ParameterSupported           </td>          <td>(</td>          <td class="paramtype">const char *&nbsp;</td>          <td class="paramname"> <em>name</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline, virtual, inherited]</code></td>        </tr>      </table></div><div class="memdoc"><p><p>Implements <a class="el" href="class_p_k___crypto_system.html#294c4664af51a72112db1f04e6ef9049">PK_CryptoSystem</a>.<p>Definition at line <a class="el" href="pubkey_8h-source.html#l00156">156</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.</div>

⌨️ 快捷键说明

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