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

📄 class_d_l___encryptor_impl.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
typedef <a class="el" href="class_d_l___public_key.html">DL_PublicKey</a>&lt; SCHEME_OPTIONS::Element &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___base.html#fd4bfa675133a35fe8e2f5b43d0d58cf">KeyInterface</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="cf9573963d02c1841b984c6ee637ae43"></a><!-- doxytag: member="DL_EncryptorImpl::GetSignatureAlgorithm" ref="cf9573963d02c1841b984c6ee637ae43" args="() const" -->const <a class="el" href="class_d_l___elgamal_like_signature_algorithm.html">DL_ElgamalLikeSignatureAlgorithm</a>&lt;<br> <a class="el" href="class_d_l___object_impl.html#79f28a05b245841b7295d4c119700892">Element</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#cf9573963d02c1841b984c6ee637ae43">GetSignatureAlgorithm</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d71f7483f1514f00962df889df9e8361"></a><!-- doxytag: member="DL_EncryptorImpl::GetKeyAgreementAlgorithm" ref="d71f7483f1514f00962df889df9e8361" args="() const" -->const <a class="el" href="class_d_l___key_agreement_algorithm.html">DL_KeyAgreementAlgorithm</a>&lt;<br> <a class="el" href="class_d_l___object_impl.html#79f28a05b245841b7295d4c119700892">Element</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#d71f7483f1514f00962df889df9e8361">GetKeyAgreementAlgorithm</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a78bba5169afc0258b500c6b15a56b4e"></a><!-- doxytag: member="DL_EncryptorImpl::GetKeyDerivationAlgorithm" ref="a78bba5169afc0258b500c6b15a56b4e" args="() const" -->const <a class="el" href="class_d_l___key_derivation_algorithm.html">DL_KeyDerivationAlgorithm</a>&lt;<br> <a class="el" href="class_d_l___object_impl.html#79f28a05b245841b7295d4c119700892">Element</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#a78bba5169afc0258b500c6b15a56b4e">GetKeyDerivationAlgorithm</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd8005edc2dc366f87a696c76381004c"></a><!-- doxytag: member="DL_EncryptorImpl::GetSymmetricEncryptionAlgorithm" ref="bd8005edc2dc366f87a696c76381004c" args="() const" -->const <a class="el" href="class_d_l___symmetric_encryption_algorithm.html">DL_SymmetricEncryptionAlgorithm</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#bd8005edc2dc366f87a696c76381004c">GetSymmetricEncryptionAlgorithm</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dede5a769f5f4d890c372c0445b2448e"></a><!-- doxytag: member="DL_EncryptorImpl::GetHashIdentifier" ref="dede5a769f5f4d890c372c0445b2448e" args="() const" --><a class="el" href="pubkey_8h.html#ef874ed3f2d212ac4629255c8ef86dd0">HashIdentifier</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#dede5a769f5f4d890c372c0445b2448e">GetHashIdentifier</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="788a3b1b7b26840ad07316fe813c7ddf"></a><!-- doxytag: member="DL_EncryptorImpl::GetMessageEncodingInterface" ref="788a3b1b7b26840ad07316fe813c7ddf" args="() const" -->const <a class="el" href="class_p_k___signature_message_encoding_method.html">PK_SignatureMessageEncodingMethod</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl.html#788a3b1b7b26840ad07316fe813c7ddf">GetMessageEncodingInterface</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f4e61281fd0ea2b6097915d330566c00"></a><!-- doxytag: member="DL_EncryptorImpl::AccessKeyInterface" ref="f4e61281fd0ea2b6097915d330566c00" args="()" --><a class="el" href="class_d_l___encryptor_base.html">DL_EncryptorBase</a>&lt; SCHEME_OPTIONS::Element <br>&gt;::<a class="el" href="class_d_l___public_key.html">KeyInterface</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl_base.html#f4e61281fd0ea2b6097915d330566c00">AccessKeyInterface</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05acd52d93b09663f466dae585e42758"></a><!-- doxytag: member="DL_EncryptorImpl::GetKeyInterface" ref="05acd52d93b09663f466dae585e42758" args="() const" -->const <a class="el" href="class_d_l___encryptor_base.html">DL_EncryptorBase</a>&lt; SCHEME_OPTIONS::Element <br>&gt;::<a class="el" href="class_d_l___public_key.html">KeyInterface</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl_base.html#05acd52d93b09663f466dae585e42758">GetKeyInterface</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b5593ebad51116c9367500cb8b444c3"></a><!-- doxytag: member="DL_EncryptorImpl::GetDigestSize" ref="2b5593ebad51116c9367500cb8b444c3" args="() const" -->size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___object_impl_base.html#2b5593ebad51116c9367500cb8b444c3">GetDigestSize</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e54e9e0c2bad2d2816c2e21c4333e000"></a><!-- doxytag: member="DL_EncryptorImpl::GetAbstractGroupParameters" ref="e54e9e0c2bad2d2816c2e21c4333e000" args="() const" -->const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt;<br> <a class="el" href="class_d_l___object_impl.html#79f28a05b245841b7295d4c119700892">Element</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___base.html#e54e9e0c2bad2d2816c2e21c4333e000">GetAbstractGroupParameters</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd23b00903bac148152df88ef051724a"></a><!-- doxytag: member="DL_EncryptorImpl::AccessAbstractGroupParameters" ref="dd23b00903bac148152df88ef051724a" args="()" --><a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; <a class="el" href="class_d_l___object_impl.html#79f28a05b245841b7295d4c119700892">Element</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___base.html#dd23b00903bac148152df88ef051724a">AccessAbstractGroupParameters</a> ()</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="c16e4aa7be7b424de8e9816810b210c7"></a><!-- doxytag: member="DL_EncryptorImpl::Encrypt" ref="c16e4aa7be7b424de8e9816810b210c7" 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 <a class="el" href="class_d_l___encryptor_base.html">DL_EncryptorBase</a>&lt; SCHEME_OPTIONS::Element  &gt;::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> [inline, 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_8h-source.html#l01220">1220</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.<p>References DL_KeyAgreementAlgorithm&lt; T &gt;::AgreeWithEphemeralPrivateKey(), DL_KeyDerivationAlgorithm&lt; T &gt;::Derive(), DL_GroupParameters&lt; T &gt;::EncodeElement(), <a class="el" href="pubkey_8h-source.html#l00576">DL_GroupParameters&lt; T &gt;::ExponentiateBase()</a>, DL_GroupParameters&lt; T &gt;::GetEncodedElementSize(), DL_GroupParameters&lt; T &gt;::GetMaxExponent(), DL_PublicKey&lt; T &gt;::GetPublicPrecomputation(), DL_SymmetricEncryptionAlgorithm::GetSymmetricKeyLength(), <a class="el" href="integer_8cpp-source.html#l02867">Integer::One()</a>, and DL_SymmetricEncryptionAlgorithm::SymmetricEncrypt().</div></div><p><a class="anchor" name="3deffe3347f225eb0483c7bf3bedc495"></a><!-- doxytag: member="DL_EncryptorImpl::MaxPlaintextLength" ref="3deffe3347f225eb0483c7bf3bedc495" args="(size_t ciphertextLength) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">size_t <a class="el" href="class_d_l___crypto_system_base.html">DL_CryptoSystemBase</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a> , <a class="el" href="class_d_l___public_key.html">DL_PublicKey</a>&lt; SCHEME_OPTIONS::Element &gt;  &gt;::MaxPlaintextLength           </td>          <td>(</td>          <td class="paramtype">size_t&nbsp;</td>          <td class="paramname"> <em>ciphertextLength</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#a4a3552c933a36b3aea26f31d00bee9b">PK_CryptoSystem</a>.<p>Definition at line <a class="el" href="pubkey_8h-source.html#l01156">1156</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.</div></div><p><a class="anchor" name="c738aee0b0262899ad33379da8798c6a"></a><!-- doxytag: member="DL_EncryptorImpl::CiphertextLength" ref="c738aee0b0262899ad33379da8798c6a" args="(size_t plaintextLength) const " -->

⌨️ 快捷键说明

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