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

📄 class_invertible_r_s_a_function.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>Crypto++: InvertibleRSAFunction Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.2 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</span></a></li>    <li class="current"><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>InvertibleRSAFunction Class Reference</h1><!-- doxytag: class="InvertibleRSAFunction" --><!-- doxytag: inherits="RSAFunction,TrapdoorFunctionInverse,PKCS8PrivateKey" --><code>#include &lt;<a class="el" href="rsa_8h-source.html">rsa.h</a>&gt;</code><p><p>Inheritance diagram for InvertibleRSAFunction:<p><center><img src="class_invertible_r_s_a_function.png" usemap="#InvertibleRSAFunction_map" border="0" alt=""></center><map name="InvertibleRSAFunction_map"><area href="class_r_s_a_function.html" alt="RSAFunction" shape="rect" coords="174,280,397,304"><area href="class_trapdoor_function_inverse.html" alt="TrapdoorFunctionInverse" shape="rect" coords="582,280,805,304"><area href="class_p_k_c_s8_private_key.html" alt="PKCS8PrivateKey" shape="rect" coords="815,280,1038,304"><area href="class_trapdoor_function.html" alt="TrapdoorFunction" shape="rect" coords="0,224,223,248"><area href="class_x509_public_key.html" alt="X509PublicKey" shape="rect" coords="349,224,572,248"><area href="class_randomized_trapdoor_function_inverse.html" alt="RandomizedTrapdoorFunctionInverse" shape="rect" coords="582,224,805,248"><area href="class_a_s_n1_crypto_material.html" alt="ASN1CryptoMaterial< PrivateKey >" shape="rect" coords="815,224,1038,248"><area href="class_randomized_trapdoor_function.html" alt="RandomizedTrapdoorFunction" shape="rect" coords="0,168,223,192"><area href="class_a_s_n1_crypto_material.html" alt="ASN1CryptoMaterial< PublicKey >" shape="rect" coords="349,168,572,192"><area href="class_a_s_n1_object.html" alt="ASN1Object" shape="rect" coords="699,168,922,192"><area href="class_private_key.html" alt="PrivateKey" shape="rect" coords="932,168,1155,192"><area href="class_trapdoor_function_bounds.html" alt="TrapdoorFunctionBounds" shape="rect" coords="0,112,223,136"><area href="class_a_s_n1_object.html" alt="ASN1Object" shape="rect" coords="233,112,456,136"><area href="class_public_key.html" alt="PublicKey" shape="rect" coords="466,112,689,136"><area href="class_generatable_crypto_material.html" alt="GeneratableCryptoMaterial" shape="rect" coords="932,112,1155,136"><area href="class_crypto_material.html" alt="CryptoMaterial" shape="rect" coords="466,56,689,80"><area href="class_crypto_material.html" alt="CryptoMaterial" shape="rect" coords="932,56,1155,80"><area href="class_name_value_pairs.html" alt="NameValuePairs" shape="rect" coords="466,0,689,24"><area href="class_name_value_pairs.html" alt="NameValuePairs" shape="rect" coords="932,0,1155,24"><area href="class_invertible_r_s_a_function___i_s_o.html" alt="InvertibleRSAFunction_ISO" shape="rect" coords="582,392,805,416"></map><a href="class_invertible_r_s_a_function-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>_ <p><p>Definition at line <a class="el" href="rsa_8h-source.html#l00053">53</a> of file <a class="el" href="rsa_8h-source.html">rsa.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"><a class="anchor" name="1d400269a0d1305e93623299d8184e29"></a><!-- doxytag: member="InvertibleRSAFunction::Initialize" ref="1d400269a0d1305e93623299d8184e29" args="(RandomNumberGenerator &amp;rng, unsigned int modulusBits, const Integer &amp;e=17)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#1d400269a0d1305e93623299d8184e29">Initialize</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, unsigned int modulusBits, const <a class="el" href="class_integer.html">Integer</a> &amp;e=17)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6ff0e6c1bb44bff9fd7d3745b9f8de92"></a><!-- doxytag: member="InvertibleRSAFunction::Initialize" ref="6ff0e6c1bb44bff9fd7d3745b9f8de92" args="(const Integer &amp;n, const Integer &amp;e, const Integer &amp;d, const Integer &amp;p, const Integer &amp;q, const Integer &amp;dp, const Integer &amp;dq, const Integer &amp;u)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#6ff0e6c1bb44bff9fd7d3745b9f8de92">Initialize</a> (const <a class="el" href="class_integer.html">Integer</a> &amp;n, const <a class="el" href="class_integer.html">Integer</a> &amp;e, const <a class="el" href="class_integer.html">Integer</a> &amp;d, const <a class="el" href="class_integer.html">Integer</a> &amp;p, const <a class="el" href="class_integer.html">Integer</a> &amp;q, const <a class="el" href="class_integer.html">Integer</a> &amp;dp, const <a class="el" href="class_integer.html">Integer</a> &amp;dq, const <a class="el" href="class_integer.html">Integer</a> &amp;u)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82875d7b47505dc036005186c45dbde7"></a><!-- doxytag: member="InvertibleRSAFunction::Initialize" ref="82875d7b47505dc036005186c45dbde7" args="(const Integer &amp;n, const Integer &amp;e, const Integer &amp;d)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#82875d7b47505dc036005186c45dbde7">Initialize</a> (const <a class="el" href="class_integer.html">Integer</a> &amp;n, const <a class="el" href="class_integer.html">Integer</a> &amp;e, const <a class="el" href="class_integer.html">Integer</a> &amp;d)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">factor n given private exponent <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="315fea96cb04dc41150d92cf5d1ce3e0"></a><!-- doxytag: member="InvertibleRSAFunction::BERDecode" ref="315fea96cb04dc41150d92cf5d1ce3e0" args="(BufferedTransformation &amp;bt)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#315fea96cb04dc41150d92cf5d1ce3e0">BERDecode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">decode this object from a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a>, using BER (Basic Encoding Rules) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8c59c737c96b4809734971d0703707d"></a><!-- doxytag: member="InvertibleRSAFunction::DEREncode" ref="f8c59c737c96b4809734971d0703707d" args="(BufferedTransformation &amp;bt) const " -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#f8c59c737c96b4809734971d0703707d">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">encode this object into a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a>, using DER (Distinguished Encoding Rules) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#d8a540a6369b9043d082b0dc38b99d4b">Load</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">load key from a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a>  <a href="#d8a540a6369b9043d082b0dc38b99d4b"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="09ea42eb393e6145171124ccdbc8883f"></a><!-- doxytag: member="InvertibleRSAFunction::Save" ref="09ea42eb393e6145171124ccdbc8883f" args="(BufferedTransformation &amp;bt) const " -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#09ea42eb393e6145171124ccdbc8883f">Save</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">save key into a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a> <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d268008c11f68dca31b5e0aee713f7f7"></a><!-- doxytag: member="InvertibleRSAFunction::GetAlgorithmID" ref="d268008c11f68dca31b5e0aee713f7f7" args="() const" --><a class="el" href="class_o_i_d.html">OID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#d268008c11f68dca31b5e0aee713f7f7">GetAlgorithmID</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec98bbad739fc4536151f2ab5eedf78c"></a><!-- doxytag: member="InvertibleRSAFunction::BERDecodePrivateKey" ref="ec98bbad739fc4536151f2ab5eedf78c" args="(BufferedTransformation &amp;bt, bool parametersPresent, size_t size)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#ec98bbad739fc4536151f2ab5eedf78c">BERDecodePrivateKey</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt, bool parametersPresent, size_t size)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">decode privateKey part of privateKeyInfo, without the OCTET STRING header <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0fd9c43c688c787d1bc686c254c577ef"></a><!-- doxytag: member="InvertibleRSAFunction::DEREncodePrivateKey" ref="0fd9c43c688c787d1bc686c254c577ef" args="(BufferedTransformation &amp;bt) const " -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#0fd9c43c688c787d1bc686c254c577ef">DEREncodePrivateKey</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">encode privateKey part of privateKeyInfo, without the OCTET STRING header <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="929a48a3b7942c57223c0ca8baa194d3"></a><!-- doxytag: member="InvertibleRSAFunction::CalculateInverse" ref="929a48a3b7942c57223c0ca8baa194d3" args="(RandomNumberGenerator &amp;rng, const Integer &amp;x) const " --><a class="el" href="class_integer.html">Integer</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#929a48a3b7942c57223c0ca8baa194d3">CalculateInverse</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, const <a class="el" href="class_integer.html">Integer</a> &amp;x) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#1416fe1274d2be8b297153ff02fe14dc">Validate</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, unsigned int level) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">check this object for errors  <a href="#1416fe1274d2be8b297153ff02fe14dc"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#369c37b8f01c8b64f22baa28811ff72f">GenerateRandom</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;alg)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d11463cbb6dac0edea661e6da7ed7ad"></a><!-- doxytag: member="InvertibleRSAFunction::GetVoidValue" ref="5d11463cbb6dac0edea661e6da7ed7ad" args="(const char *name, const std::type_info &amp;valueType, void *pValue) const " -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#5d11463cbb6dac0edea661e6da7ed7ad">GetVoidValue</a> (const char *name, const std::type_info &amp;valueType, void *pValue) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">to be implemented by derived classes, users should use one of the above functions instead <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#871fc366191e9c5fae114c06a200c928">AssignFrom</a> (const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;source)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">assign values from source to this object  <a href="#871fc366191e9c5fae114c06a200c928"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="006237f2106e46520b493bbd40e29d89"></a><!-- doxytag: member="InvertibleRSAFunction::GetPrime1" ref="006237f2106e46520b493bbd40e29d89" args="() const" -->const <a class="el" href="class_integer.html">Integer</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#006237f2106e46520b493bbd40e29d89">GetPrime1</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="440388b7d271d28e6302d5f8a37fda02"></a><!-- doxytag: member="InvertibleRSAFunction::GetPrime2" ref="440388b7d271d28e6302d5f8a37fda02" args="() const" -->const <a class="el" href="class_integer.html">Integer</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#440388b7d271d28e6302d5f8a37fda02">GetPrime2</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="93c1fcc51224f38db69ca437dad3d9bc"></a><!-- doxytag: member="InvertibleRSAFunction::GetPrivateExponent" ref="93c1fcc51224f38db69ca437dad3d9bc" args="() const" -->const <a class="el" href="class_integer.html">Integer</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#93c1fcc51224f38db69ca437dad3d9bc">GetPrivateExponent</a> () const</td></tr>

⌨️ 快捷键说明

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