📄 class_invertible_r_s_a_function.html
字号:
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#96686e9f8d6ce3ab870e516fb72b608e">GetValue</a> (const char *name, T &value) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a named value, returns true if the name exists <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="943b2009297783f1c35bae46efc3b5f7"></a><!-- doxytag: member="InvertibleRSAFunction::GetValueWithDefault" ref="943b2009297783f1c35bae46efc3b5f7" args="(const char *name, T defaultValue) const " -->template<class T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#943b2009297783f1c35bae46efc3b5f7">GetValueWithDefault</a> (const char *name, T defaultValue) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a named value, returns the default if the name doesn't exist <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13faea827ee047cd58557282806ed2e1"></a><!-- doxytag: member="InvertibleRSAFunction::GetValueNames" ref="13faea827ee047cd58557282806ed2e1" args="() const" -->std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#13faea827ee047cd58557282806ed2e1">GetValueNames</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a list of value names that can be retrieved <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#39b6daefcabcdd07f5ae482a075e1728">GetIntValue</a> (const char *name, int &value) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a named value with type int <a href="#39b6daefcabcdd07f5ae482a075e1728"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ddb654b7afcd1a04422a7b4b01366d9"></a><!-- doxytag: member="InvertibleRSAFunction::GetIntValueWithDefault" ref="7ddb654b7afcd1a04422a7b4b01366d9" args="(const char *name, int defaultValue) const" -->int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#7ddb654b7afcd1a04422a7b4b01366d9">GetIntValueWithDefault</a> (const char *name, int defaultValue) const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a named value with type int, with default <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="c66048d3bc2a741712486d02e1f75d78"></a><!-- doxytag: member="InvertibleRSAFunction::GetRequiredParameter" ref="c66048d3bc2a741712486d02e1f75d78" args="(const char *className, const char *name, T &value) const " -->template<class T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#c66048d3bc2a741712486d02e1f75d78">GetRequiredParameter</a> (const char *className, const char *name, T &value) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e6596c87ad9c2bb7f2a4d7b2194b949"></a><!-- doxytag: member="InvertibleRSAFunction::GetRequiredIntParameter" ref="1e6596c87ad9c2bb7f2a4d7b2194b949" args="(const char *className, const char *name, int &value) const " -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#1e6596c87ad9c2bb7f2a4d7b2194b949">GetRequiredIntParameter</a> (const char *className, const char *name, int &value) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="676ce8748a1fbdde3cdeaa9d5e2a1c41"></a><!-- doxytag: member="InvertibleRSAFunction::CalculateRandomizedInverse" ref="676ce8748a1fbdde3cdeaa9d5e2a1c41" args="(RandomNumberGenerator &rng, const Integer &x) const " --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function_inverse.html#676ce8748a1fbdde3cdeaa9d5e2a1c41">CalculateRandomizedInverse</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, const <a class="el" href="class_integer.html">Integer</a> &x) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9b2cad45cb51609e3caedfa7bb44594e"></a><!-- doxytag: member="InvertibleRSAFunction::IsRandomized" ref="9b2cad45cb51609e3caedfa7bb44594e" args="() const" -->bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function_inverse.html#9b2cad45cb51609e3caedfa7bb44594e">IsRandomized</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="210f9b83d457ba4821c2966984e9b552"></a><!-- doxytag: member="InvertibleRSAFunction::BERDecodeAlgorithmParameters" ref="210f9b83d457ba4821c2966984e9b552" args="(BufferedTransformation &bt)" -->virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k_c_s8_private_key.html#210f9b83d457ba4821c2966984e9b552">BERDecodeAlgorithmParameters</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ff022873be60732e570f94ed80de07a9"></a><!-- doxytag: member="InvertibleRSAFunction::DEREncodeAlgorithmParameters" ref="ff022873be60732e570f94ed80de07a9" args="(BufferedTransformation &bt) const " -->virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k_c_s8_private_key.html#ff022873be60732e570f94ed80de07a9">DEREncodeAlgorithmParameters</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k_c_s8_private_key.html#55301b3f97993d9bb2dd7dcf48f35aa6">BERDecodeOptionalAttributes</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">decode optional attributes including context-specific tag <a href="#55301b3f97993d9bb2dd7dcf48f35aa6"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a32007edac3c3137ad0be6542402285"></a><!-- doxytag: member="InvertibleRSAFunction::DEREncodeOptionalAttributes" ref="0a32007edac3c3137ad0be6542402285" args="(BufferedTransformation &bt) const " -->virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k_c_s8_private_key.html#0a32007edac3c3137ad0be6542402285">DEREncodeOptionalAttributes</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">encode optional attributes including context-specific tag <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38d492343c32e530a5c2781b5797f755"></a><!-- doxytag: member="InvertibleRSAFunction::GenerateRandomWithKeySize" ref="38d492343c32e530a5c2781b5797f755" args="(RandomNumberGenerator &rng, unsigned int keySize)" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_generatable_crypto_material.html#38d492343c32e530a5c2781b5797f755">GenerateRandomWithKeySize</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, unsigned int keySize)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">calls the above function with a <a class="el" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> object that just specifies "KeySize" <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="a50a73b1705adb00ace9463b59696fb7"></a><!-- doxytag: member="InvertibleRSAFunction::ThrowIfTypeMismatch" ref="a50a73b1705adb00ace9463b59696fb7" args="(const char *name, const std::type_info &stored, const std::type_info &retrieving)" -->static void __cdecl </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a50a73b1705adb00ace9463b59696fb7">ThrowIfTypeMismatch</a> (const char *name, const std::type_info &stored, const std::type_info &retrieving)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">used by derived classes to check for type mismatch <br></td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6ebef334123434c80fd0d87dddea8c7"></a><!-- doxytag: member="InvertibleRSAFunction::m_d" ref="e6ebef334123434c80fd0d87dddea8c7" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#e6ebef334123434c80fd0d87dddea8c7">m_d</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0061793214f56717f67956444c935cf9"></a><!-- doxytag: member="InvertibleRSAFunction::m_p" ref="0061793214f56717f67956444c935cf9" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#0061793214f56717f67956444c935cf9">m_p</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="48b1e3c5cf1ba5ba83952d46708afaee"></a><!-- doxytag: member="InvertibleRSAFunction::m_q" ref="48b1e3c5cf1ba5ba83952d46708afaee" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#48b1e3c5cf1ba5ba83952d46708afaee">m_q</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="665927266b9a38963099529f720246ac"></a><!-- doxytag: member="InvertibleRSAFunction::m_dp" ref="665927266b9a38963099529f720246ac" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#665927266b9a38963099529f720246ac">m_dp</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3702d3ea62a2edce11be04493e18a5a9"></a><!-- doxytag: member="InvertibleRSAFunction::m_dq" ref="3702d3ea62a2edce11be04493e18a5a9" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#3702d3ea62a2edce11be04493e18a5a9">m_dq</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b7b378c8be194a47faf824844ed6c7b"></a><!-- doxytag: member="InvertibleRSAFunction::m_u" ref="6b7b378c8be194a47faf824844ed6c7b" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_invertible_r_s_a_function.html#6b7b378c8be194a47faf824844ed6c7b">m_u</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b2e89822414861cb312d52d8c7ac3017"></a><!-- doxytag: member="InvertibleRSAFunction::m_n" ref="b2e89822414861cb312d52d8c7ac3017" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_s_a_function.html#b2e89822414861cb312d52d8c7ac3017">m_n</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6d15cdabeb084e9cdc7efb1bbdea783"></a><!-- doxytag: member="InvertibleRSAFunction::m_e" ref="f6d15cdabeb084e9cdc7efb1bbdea783" args="" --><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_s_a_function.html#f6d15cdabeb084e9cdc7efb1bbdea783">m_e</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="efc1a5436742d18d7774085fa7a45f72"></a><!-- doxytag: member="InvertibleRSAFunction::m_optionalAttributes" ref="efc1a5436742d18d7774085fa7a45f72" args="" --><a class="el" href="class_byte_queue.html">ByteQueue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k_c_s8_private_key.html#efc1a5436742d18d7774085fa7a45f72">m_optionalAttributes</a></td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="d8a540a6369b9043d082b0dc38b99d4b"></a><!-- doxytag: member="InvertibleRSAFunction::Load" ref="d8a540a6369b9043d082b0dc38b99d4b" args="(BufferedTransformation &bt)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void InvertibleRSAFunction::Load </td> <td>(</td> <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> & </td> <td class="paramname"> <em>bt</em> </td> <td> ) </td> <td width="100%"><code> [inline, virtual]</code></td> </tr> </table></div><div class="memdoc"><p>load key from a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a> <p><dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>KeyingErr</em> </td><td>if decode fails </td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Generally does not check that the key is valid. Call ValidateKey() or ThrowIfInvalidKey() to check that. </dd></dl><p>Reimplemented from <a class="el" href="class_a_s_n1_crypto_material.html#23d34a094f5765a1cf51f22ae1233f66">ASN1CryptoMaterial< PrivateKey ></a>.<p>Definition at line <a class="el" href="rsa_8h-source.html#l00069">69</a> of file <a class="el" href="rsa_8h-source.html">rsa.h</a>.<p>References <a class="el" href="asn_8cpp-source.html#l00545">PKCS8PrivateKey::BERDecode()</a>.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -