<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: esign.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">esign.h</div> </div> </div><!--header--> <div class="contents"> <a href="esign_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// esign.h - originally written and placed in the public domain by Wei Dai</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"></span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">/// \file esign.h</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/// \brief Classes providing ESIGN signature schemes as defined in IEEE P1363a</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#ifndef CRYPTOPP_ESIGN_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#define CRYPTOPP_ESIGN_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="cryptlib_8h.html">cryptlib.h</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="pubkey_8h.html">pubkey.h</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="integer_8h.html">integer.h</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="asn_8h.html">asn.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="misc_8h.html">misc.h</a>"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> NAMESPACE_BEGIN(<a class="code" href="namespace_crypto_p_p.html">CryptoPP</a>)</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">/// \brief ESIGN trapdoor function using the public key</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"></span><span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_e_s_i_g_n_function.html"> 20</a></span> <span class="comment"></span>class <a class="code" href="class_e_s_i_g_n_function.html">ESIGNFunction</a> : public <a class="code" href="class_trapdoor_function.html">TrapdoorFunction</a>, public <a class="code" href="class_a_s_n1_crypto_material.html">ASN1CryptoMaterial</a><<a class="code" href="class_public_key.html">PublicKey</a>></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">typedef</span> <a class="code" href="class_e_s_i_g_n_function.html">ESIGNFunction</a> <a class="code" href="class_e_s_i_g_n_function.html">ThisClass</a>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> /// \brief Initialize a ESIGN public key with {n,e}</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> /// \param n the modulus</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> /// \param e the public exponent</span></div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_e_s_i_g_n_function.html#a8517acbd8209e7eeb56138d0ab616265"> 29</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="class_e_s_i_g_n_function.html#a8517acbd8209e7eeb56138d0ab616265">Initialize</a>(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &n, <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &e)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {m_n = n; m_e = e;}</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// PublicKey</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">void</span> BERDecode(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> DEREncode(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) <span class="keyword">const</span>;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// CryptoMaterial</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">bool</span> Validate(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> level) <span class="keyword">const</span>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">bool</span> GetVoidValue(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> std::type_info &valueType, <span class="keywordtype">void</span> *pValue) <span class="keyword">const</span>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">void</span> AssignFrom(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &source);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// TrapdoorFunction</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="class_integer.html">Integer</a> ApplyFunction(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &x) <span class="keyword">const</span>;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_e_s_i_g_n_function.html#a4d46257e98886e62e0fcb64a77c30053"> 43</a></span>  <a class="code" href="class_integer.html">Integer</a> <a class="code" href="class_e_s_i_g_n_function.html#a4d46257e98886e62e0fcb64a77c30053">PreimageBound</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_n;}</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_e_s_i_g_n_function.html#aa5c6b63f6c16a17dcd4a5922924bf3d9"> 44</a></span>  <a class="code" href="class_integer.html">Integer</a> <a class="code" href="class_e_s_i_g_n_function.html#aa5c6b63f6c16a17dcd4a5922924bf3d9">ImageBound</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="class_integer.html#ade53248f5dbb520273a70856b975417c">Integer::Power2</a>(GetK());}</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// non-derived</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> & GetModulus()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_n;}</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> & GetPublicExponent()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_e;}</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> SetModulus(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &n) {m_n = n;}</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> SetPublicExponent(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &e) {m_e = e;}</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">// Covertiy finding on overflow. The library allows small values for research purposes.</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetK()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="misc_8h.html#a30712a90999ad9d9152975f2e92d46b8">SaturatingSubtract</a>(m_n.BitCount()/3, 1U);}</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="class_integer.html">Integer</a> m_n, m_e;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> };</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"></span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">/// \brief ESIGN trapdoor function using the private key</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_invertible_e_s_i_g_n_function.html"> 62</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_invertible_e_s_i_g_n_function.html">InvertibleESIGNFunction</a> : <span class="keyword">public</span> <a class="code" href="class_e_s_i_g_n_function.html">ESIGNFunction</a>, <span class="keyword">public</span> <a class="code" href="class_randomized_trapdoor_function_inverse.html">RandomizedTrapdoorFunctionInverse</a>, <span class="keyword">public</span> <a class="code" href="class_private_key.html">PrivateKey</a></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">typedef</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html">InvertibleESIGNFunction</a> <a class="code" href="class_e_s_i_g_n_function.html">ThisClass</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"></span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> /// \brief Initialize a ESIGN private key with {n,e,p,q}</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> /// \param n modulus</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> /// \param e public exponent</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> /// \param p first prime factor</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> /// \param q second prime factor</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> /// \details This Initialize() function overload initializes a private key from existing parameters.</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_invertible_e_s_i_g_n_function.html#a43215778d1630a0037a794d815dac5d6"> 74</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a43215778d1630a0037a794d815dac5d6">Initialize</a>(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &n, <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &e, <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &p, <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &q)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {m_n = n; m_e = e; m_p = p; m_q = q;}</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> /// \brief Create a ESIGN private key</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"> /// \param rng a RandomNumberGenerator derived class</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> /// \param modulusBits the size of the modulud, in bits</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> /// \details This function overload of Initialize() creates a new private key because it</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"> /// takes a RandomNumberGenerator() as a parameter. If you have an existing keypair,</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> /// then use one of the other Initialize() overloads.</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_invertible_e_s_i_g_n_function.html#a4ebace71d71f1e3d49bbb506105789e7"> 83</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a4ebace71d71f1e3d49bbb506105789e7">Initialize</a>(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> modulusBits)</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {<a class="code" href="class_generatable_crypto_material.html#a38d492343c32e530a5c2781b5797f755">GenerateRandomWithKeySize</a>(rng, modulusBits);}</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="comment">// Squash Visual Studio C4250 warning</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_invertible_e_s_i_g_n_function.html#a5516f8cc925dc763d70d08437b19ea8f"> 87</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a5516f8cc925dc763d70d08437b19ea8f">Save</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)<span class="keyword"> const</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keyword"> </span>{<a class="code" href="class_a_s_n1_object.html#a23d4aa134b80757d98145ecc832b5abb">BEREncode</a>(bt);}</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="comment">// Squash Visual Studio C4250 warning</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_invertible_e_s_i_g_n_function.html#a64a251d28970b7c1d42295cffd4dc09e"> 91</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a64a251d28970b7c1d42295cffd4dc09e">Load</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {<a class="code" href="class_invertible_e_s_i_g_n_function.html#a7e63d8fe66a25af6611f37bdaac982c4">BERDecode</a>(bt);}</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a7e63d8fe66a25af6611f37bdaac982c4">BERDecode</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a67cceb3b4d3d40b01d89c2053b8b258f">DEREncode</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) <span class="keyword">const</span>;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="class_integer.html">Integer</a> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a0eed8ac3efb7868aa7ae0a09ee785610">CalculateRandomizedInverse</a>(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &x) <span class="keyword">const</span>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// GeneratibleCryptoMaterial</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">bool</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a1c64c8101a488232cde43a5c473742b1">Validate</a>(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> level) <span class="keyword">const</span>;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">bool</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a870d6ba6500b250ec400fdbb7ad47e08">GetVoidValue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> std::type_info &valueType, <span class="keywordtype">void</span> *pValue) <span class="keyword">const</span>;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#aca870e350b30d04a47d452f21e903278">AssignFrom</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &source);<span class="comment"></span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> /*! parameters: (ModulusSize) */</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">void</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html#a241b733193f9f420f188ca6f57d49c27">GenerateRandom</a>(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &alg);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a>& GetPrime1()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_p;}</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a>& GetPrime2()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_q;}</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">void</span> SetPrime1(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &p) {m_p = p;}</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">void</span> SetPrime2(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &q) {m_q = q;}</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="class_integer.html">Integer</a> m_p, m_q;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> };</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"></span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment">/// \brief EMSA5 padding method</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">/// \tparam T Mask Generation Function</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"></span><span class="keyword">template</span> <<span class="keyword">class</span> T></div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_e_m_s_a5_pad.html"> 120</a></span> <span class="keyword">class </span><a class="code" href="class_e_m_s_a5_pad.html">EMSA5Pad</a> : <span class="keyword">public</span> <a class="code" href="class_p_k___deterministic_signature_message_encoding_method.html">PK_DeterministicSignatureMessageEncodingMethod</a></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  CRYPTOPP_STATIC_CONSTEXPR <span class="keyword">const</span> <span class="keywordtype">char</span>* StaticAlgorithmName() {<span class="keywordflow">return</span> <span class="stringliteral">"EMSA5"</span>;}</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordtype">void</span> ComputeMessageRepresentative(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> byte *recoverableMessage, <span class="keywordtype">size_t</span> recoverableMessageLength,</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="class_hash_transformation.html">HashTransformation</a> &hash, HashIdentifier hashIdentifier, <span class="keywordtype">bool</span> messageEmpty,</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  byte *representative, <span class="keywordtype">size_t</span> representativeBitLength)<span class="keyword"> const</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  CRYPTOPP_UNUSED(rng), CRYPTOPP_UNUSED(recoverableMessage), CRYPTOPP_UNUSED(recoverableMessageLength);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  CRYPTOPP_UNUSED(messageEmpty), CRYPTOPP_UNUSED(hashIdentifier);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="class_sec_byte_block.html">SecByteBlock</a> digest(hash.<a class="code" href="class_hash_transformation.html#a9f42cc280bac76b884ad12615c0dabb5">DigestSize</a>());</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  hash.<a class="code" href="class_hash_transformation.html#aa0b8c7a110d8968268fd02ec32b9a8e8">Final</a>(digest);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">size_t</span> representativeByteLength = <a class="code" href="misc_8h.html#a7c5d30b17c9d4869fdc3458dd05c500d">BitsToBytes</a>(representativeBitLength);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  T mgf;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  mgf.GenerateAndMask(hash, representative, representativeByteLength, digest, digest.size(), <span class="keyword">false</span>);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (representativeBitLength % 8 != 0)</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  representative[0] = (byte)<a class="code" href="misc_8h.html#a616a7f0365c4947b0c8a44606c525a62">Crop</a>(representative[0], representativeBitLength % 8);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> };</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"></span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">/// \brief EMSA5 padding method, for use with ESIGN</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="struct_p1363___e_m_s_a5.html"> 144</a></span> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="struct_p1363___e_m_s_a5.html">P1363_EMSA5</a> : <span class="keyword">public</span> <a class="code" href="struct_signature_standard.html">SignatureStandard</a></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">typedef</span> <a class="code" href="class_e_m_s_a5_pad.html">EMSA5Pad<P1363_MGF1></a> <a class="code" href="class_e_m_s_a5_pad.html">SignatureMessageEncodingMethod</a>;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> };</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"></span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment">/// \brief ESIGN keys</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="struct_e_s_i_g_n___keys.html"> 151</a></span> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="struct_e_s_i_g_n___keys.html">ESIGN_Keys</a></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  CRYPTOPP_STATIC_CONSTEXPR <span class="keyword">const</span> <span class="keywordtype">char</span>* StaticAlgorithmName() {<span class="keywordflow">return</span> <span class="stringliteral">"ESIGN"</span>;}</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">typedef</span> <a class="code" href="class_e_s_i_g_n_function.html">ESIGNFunction</a> <a class="code" href="class_e_s_i_g_n_function.html">PublicKey</a>;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">typedef</span> <a class="code" href="class_invertible_e_s_i_g_n_function.html">InvertibleESIGNFunction</a> <a class="code" href="class_invertible_e_s_i_g_n_function.html">PrivateKey</a>;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> };</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"></span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">/// \brief ESIGN signature scheme, IEEE P1363a</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">/// \tparam H HashTransformation derived class</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment">/// \tparam STANDARD Signature encoding method</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">/// \since Crypto++ 5.0</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"></span><span class="keyword">template</span> <<span class="keyword">class</span> H, <span class="keyword">class</span> STANDARD = P1363_EMSA5></div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="struct_e_s_i_g_n.html"> 163</a></span> <span class="keyword">struct </span><a class="code" href="struct_e_s_i_g_n.html">ESIGN</a> : <span class="keyword">public</span> <a class="code" href="class_t_f___s_s.html">TF_SS</a><ESIGN_Keys, STANDARD, H></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> };</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> NAMESPACE_END</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_e_s_i_g_n_function_html_aa5c6b63f6c16a17dcd4a5922924bf3d9"><div class="ttname"><a href="class_e_s_i_g_n_function.html#aa5c6b63f6c16a17dcd4a5922924bf3d9">ESIGNFunction::ImageBound</a></div><div class="ttdeci">Integer ImageBound() const</div><div class="ttdoc">Returns the maximum size of a message after the trapdoor function is applied. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00044">esign.h:44</a></div></div> <div class="ttc" id="misc_8h_html"><div class="ttname"><a href="misc_8h.html">misc.h</a></div><div class="ttdoc">Utility functions for the Crypto++ library. </div></div> <div class="ttc" id="misc_8h_html_a7c5d30b17c9d4869fdc3458dd05c500d"><div class="ttname"><a href="misc_8h.html#a7c5d30b17c9d4869fdc3458dd05c500d">BitsToBytes</a></div><div class="ttdeci">size_t BitsToBytes(size_t bitCount)</div><div class="ttdoc">Returns the number of 8-bit bytes or octets required for the specified number of bits. </div><div class="ttdef"><b>Definition:</b> <a href="misc_8h_source.html#l00790">misc.h:790</a></div></div> <div class="ttc" id="pubkey_8h_html"><div class="ttname"><a href="pubkey_8h.html">pubkey.h</a></div><div class="ttdoc">This file contains helper classes/functions for implementing public key algorithms. </div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a67cceb3b4d3d40b01d89c2053b8b258f"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a67cceb3b4d3d40b01d89c2053b8b258f">InvertibleESIGNFunction::DEREncode</a></div><div class="ttdeci">void DEREncode(BufferedTransformation &bt) const</div><div class="ttdoc">Encode this object into a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00143">esign.cpp:143</a></div></div> <div class="ttc" id="struct_e_s_i_g_n_html"><div class="ttname"><a href="struct_e_s_i_g_n.html">ESIGN</a></div><div class="ttdoc">ESIGN signature scheme, IEEE P1363a. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00163">esign.h:163</a></div></div> <div class="ttc" id="cryptlib_8h_html"><div class="ttname"><a href="cryptlib_8h.html">cryptlib.h</a></div><div class="ttdoc">Abstract base classes that provide a uniform interface to this library. </div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a43215778d1630a0037a794d815dac5d6"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a43215778d1630a0037a794d815dac5d6">InvertibleESIGNFunction::Initialize</a></div><div class="ttdeci">void Initialize(const Integer &n, const Integer &e, const Integer &p, const Integer &q)</div><div class="ttdoc">Initialize a ESIGN private key with {n,e,p,q}. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00074">esign.h:74</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a64a251d28970b7c1d42295cffd4dc09e"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a64a251d28970b7c1d42295cffd4dc09e">InvertibleESIGNFunction::Load</a></div><div class="ttdeci">void Load(BufferedTransformation &bt)</div><div class="ttdoc">Loads a key from a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00091">esign.h:91</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a0eed8ac3efb7868aa7ae0a09ee785610"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a0eed8ac3efb7868aa7ae0a09ee785610">InvertibleESIGNFunction::CalculateRandomizedInverse</a></div><div class="ttdeci">Integer CalculateRandomizedInverse(RandomNumberGenerator &rng, const Integer &x) const</div><div class="ttdoc">Applies the inverse of the trapdoor function, using random data if required. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00153">esign.cpp:153</a></div></div> <div class="ttc" id="class_e_s_i_g_n_function_html_a8517acbd8209e7eeb56138d0ab616265"><div class="ttname"><a href="class_e_s_i_g_n_function.html#a8517acbd8209e7eeb56138d0ab616265">ESIGNFunction::Initialize</a></div><div class="ttdeci">void Initialize(const Integer &n, const Integer &e)</div><div class="ttdoc">Initialize a ESIGN public key with {n,e}. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00029">esign.h:29</a></div></div> <div class="ttc" id="class_random_number_generator_html"><div class="ttname"><a href="class_random_number_generator.html">RandomNumberGenerator</a></div><div class="ttdoc">Interface for random number generators. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01330">cryptlib.h:1330</a></div></div> <div class="ttc" id="class_sec_byte_block_html"><div class="ttname"><a href="class_sec_byte_block.html">SecByteBlock</a></div><div class="ttdoc">SecBlock<byte> typedef. </div><div class="ttdef"><b>Definition:</b> <a href="secblock_8h_source.html#l00822">secblock.h:822</a></div></div> <div class="ttc" id="class_buffered_transformation_html"><div class="ttname"><a href="class_buffered_transformation.html">BufferedTransformation</a></div><div class="ttdoc">Interface for buffered transformations. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01545">cryptlib.h:1545</a></div></div> <div class="ttc" id="class_private_key_html"><div class="ttname"><a href="class_private_key.html">PrivateKey</a></div><div class="ttdoc">Interface for private keys. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l02374">cryptlib.h:2374</a></div></div> <div class="ttc" id="struct_signature_standard_html"><div class="ttname"><a href="struct_signature_standard.html">SignatureStandard</a></div><div class="ttdoc">Base class for public key signature standard classes. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l02216">pubkey.h:2216</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a7e63d8fe66a25af6611f37bdaac982c4"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a7e63d8fe66a25af6611f37bdaac982c4">InvertibleESIGNFunction::BERDecode</a></div><div class="ttdeci">void BERDecode(BufferedTransformation &bt)</div><div class="ttdoc">Decode this object from a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00133">esign.cpp:133</a></div></div> <div class="ttc" id="class_e_s_i_g_n_function_html_a4d46257e98886e62e0fcb64a77c30053"><div class="ttname"><a href="class_e_s_i_g_n_function.html#a4d46257e98886e62e0fcb64a77c30053">ESIGNFunction::PreimageBound</a></div><div class="ttdeci">Integer PreimageBound() const</div><div class="ttdoc">Returns the maximum size of a message before the trapdoor function is applied. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00043">esign.h:43</a></div></div> <div class="ttc" id="class_e_m_s_a5_pad_html"><div class="ttname"><a href="class_e_m_s_a5_pad.html">EMSA5Pad</a></div><div class="ttdoc">EMSA5 padding method. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00120">esign.h:120</a></div></div> <div class="ttc" id="class_p_k___deterministic_signature_message_encoding_method_html"><div class="ttname"><a href="class_p_k___deterministic_signature_message_encoding_method.html">PK_DeterministicSignatureMessageEncodingMethod</a></div><div class="ttdoc">Interface for message encoding method for public key signature schemes. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00391">pubkey.h:391</a></div></div> <div class="ttc" id="misc_8h_html_a616a7f0365c4947b0c8a44606c525a62"><div class="ttname"><a href="misc_8h.html#a616a7f0365c4947b0c8a44606c525a62">Crop</a></div><div class="ttdeci">T Crop(T value, size_t bits)</div><div class="ttdoc">Truncates the value to the specified number of bits. </div><div class="ttdef"><b>Definition:</b> <a href="misc_8h_source.html#l00778">misc.h:778</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_aca870e350b30d04a47d452f21e903278"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#aca870e350b30d04a47d452f21e903278">InvertibleESIGNFunction::AssignFrom</a></div><div class="ttdeci">void AssignFrom(const NameValuePairs &source)</div><div class="ttdoc">Assign values to this object. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00225">esign.cpp:225</a></div></div> <div class="ttc" id="class_integer_html_ade53248f5dbb520273a70856b975417c"><div class="ttname"><a href="class_integer.html#ade53248f5dbb520273a70856b975417c">Integer::Power2</a></div><div class="ttdeci">static Integer Power2(size_t e)</div><div class="ttdoc">Exponentiates to a power of 2. </div><div class="ttdef"><b>Definition:</b> <a href="integer_8cpp_source.html#l03055">integer.cpp:3055</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html">InvertibleESIGNFunction</a></div><div class="ttdoc">ESIGN trapdoor function using the private key. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00062">esign.h:62</a></div></div> <div class="ttc" id="class_integer_html"><div class="ttname"><a href="class_integer.html">Integer</a></div><div class="ttdoc">Multiple precision integer with arithmetic operations. </div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00049">integer.h:49</a></div></div> <div class="ttc" id="misc_8h_html_a30712a90999ad9d9152975f2e92d46b8"><div class="ttname"><a href="misc_8h.html#a30712a90999ad9d9152975f2e92d46b8">SaturatingSubtract</a></div><div class="ttdeci">T1 SaturatingSubtract(const T1 &a, const T2 &b)</div><div class="ttdoc">Performs a saturating subtract clamped at 0. </div><div class="ttdef"><b>Definition:</b> <a href="misc_8h_source.html#l00890">misc.h:890</a></div></div> <div class="ttc" id="class_trapdoor_function_html"><div class="ttname"><a href="class_trapdoor_function.html">TrapdoorFunction</a></div><div class="ttdoc">Applies the trapdoor function. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00125">pubkey.h:125</a></div></div> <div class="ttc" id="struct_p1363___e_m_s_a5_html"><div class="ttname"><a href="struct_p1363___e_m_s_a5.html">P1363_EMSA5</a></div><div class="ttdoc">EMSA5 padding method, for use with ESIGN. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00144">esign.h:144</a></div></div> <div class="ttc" id="asn_8h_html"><div class="ttname"><a href="asn_8h.html">asn.h</a></div><div class="ttdoc">Classes and functions for working with ANS.1 objects. </div></div> <div class="ttc" id="class_hash_transformation_html_a9f42cc280bac76b884ad12615c0dabb5"><div class="ttname"><a href="class_hash_transformation.html#a9f42cc280bac76b884ad12615c0dabb5">HashTransformation::DigestSize</a></div><div class="ttdeci">virtual unsigned int DigestSize() const =0</div><div class="ttdoc">Provides the digest size of the hash. </div></div> <div class="ttc" id="struct_e_s_i_g_n___keys_html"><div class="ttname"><a href="struct_e_s_i_g_n___keys.html">ESIGN_Keys</a></div><div class="ttdoc">ESIGN keys. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00151">esign.h:151</a></div></div> <div class="ttc" id="class_e_s_i_g_n_function_html"><div class="ttname"><a href="class_e_s_i_g_n_function.html">ESIGNFunction</a></div><div class="ttdoc">ESIGN trapdoor function using the public key. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00020">esign.h:20</a></div></div> <div class="ttc" id="class_hash_transformation_html"><div class="ttname"><a href="class_hash_transformation.html">HashTransformation</a></div><div class="ttdoc">Interface for hash functions and data processing part of MACs. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01065">cryptlib.h:1065</a></div></div> <div class="ttc" id="class_generatable_crypto_material_html_a38d492343c32e530a5c2781b5797f755"><div class="ttname"><a href="class_generatable_crypto_material.html#a38d492343c32e530a5c2781b5797f755">GeneratableCryptoMaterial::GenerateRandomWithKeySize</a></div><div class="ttdeci">void GenerateRandomWithKeySize(RandomNumberGenerator &rng, unsigned int keySize)</div><div class="ttdoc">Generate a random key or crypto parameters. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8cpp_source.html#l00817">cryptlib.cpp:817</a></div></div> <div class="ttc" id="integer_8h_html"><div class="ttname"><a href="integer_8h.html">integer.h</a></div><div class="ttdoc">Multiple precision integer with arithmetic operations. </div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a4ebace71d71f1e3d49bbb506105789e7"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a4ebace71d71f1e3d49bbb506105789e7">InvertibleESIGNFunction::Initialize</a></div><div class="ttdeci">void Initialize(RandomNumberGenerator &rng, unsigned int modulusBits)</div><div class="ttdoc">Create a ESIGN private key. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00083">esign.h:83</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a5516f8cc925dc763d70d08437b19ea8f"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a5516f8cc925dc763d70d08437b19ea8f">InvertibleESIGNFunction::Save</a></div><div class="ttdeci">void Save(BufferedTransformation &bt) const</div><div class="ttdoc">Saves a key to a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8h_source.html#l00087">esign.h:87</a></div></div> <div class="ttc" id="class_public_key_html"><div class="ttname"><a href="class_public_key.html">PublicKey</a></div><div class="ttdoc">Interface for public keys. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l02369">cryptlib.h:2369</a></div></div> <div class="ttc" id="namespace_crypto_p_p_html"><div class="ttname"><a href="namespace_crypto_p_p.html">CryptoPP</a></div><div class="ttdoc">Crypto++ library namespace. </div></div> <div class="ttc" id="class_randomized_trapdoor_function_inverse_html"><div class="ttname"><a href="class_randomized_trapdoor_function_inverse.html">RandomizedTrapdoorFunctionInverse</a></div><div class="ttdoc">Applies the inverse of the trapdoor function, using random data if required. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00154">pubkey.h:154</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a870d6ba6500b250ec400fdbb7ad47e08"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a870d6ba6500b250ec400fdbb7ad47e08">InvertibleESIGNFunction::GetVoidValue</a></div><div class="ttdeci">bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const</div><div class="ttdoc">Get a named value. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00217">esign.cpp:217</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a241b733193f9f420f188ca6f57d49c27"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a241b733193f9f420f188ca6f57d49c27">InvertibleESIGNFunction::GenerateRandom</a></div><div class="ttdeci">void GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs &alg)</div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00088">esign.cpp:88</a></div></div> <div class="ttc" id="class_a_s_n1_object_html_a23d4aa134b80757d98145ecc832b5abb"><div class="ttname"><a href="class_a_s_n1_object.html#a23d4aa134b80757d98145ecc832b5abb">ASN1Object::BEREncode</a></div><div class="ttdeci">virtual void BEREncode(BufferedTransformation &bt) const</div><div class="ttdoc">Encode this object into a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l03131">cryptlib.h:3131</a></div></div> <div class="ttc" id="class_hash_transformation_html_aa0b8c7a110d8968268fd02ec32b9a8e8"><div class="ttname"><a href="class_hash_transformation.html#aa0b8c7a110d8968268fd02ec32b9a8e8">HashTransformation::Final</a></div><div class="ttdeci">virtual void Final(byte *digest)</div><div class="ttdoc">Computes the hash of the current message. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01095">cryptlib.h:1095</a></div></div> <div class="ttc" id="class_a_s_n1_crypto_material_html"><div class="ttname"><a href="class_a_s_n1_crypto_material.html">ASN1CryptoMaterial</a></div><div class="ttdoc">Encode and decode ASN.1 objects with additional information. </div><div class="ttdef"><b>Definition:</b> <a href="asn_8h_source.html#l00376">asn.h:376</a></div></div> <div class="ttc" id="class_invertible_e_s_i_g_n_function_html_a1c64c8101a488232cde43a5c473742b1"><div class="ttname"><a href="class_invertible_e_s_i_g_n_function.html#a1c64c8101a488232cde43a5c473742b1">InvertibleESIGNFunction::Validate</a></div><div class="ttdeci">bool Validate(RandomNumberGenerator &rng, unsigned int level) const</div><div class="ttdoc">Check this object for errors. </div><div class="ttdef"><b>Definition:</b> <a href="esign_8cpp_source.html#l00194">esign.cpp:194</a></div></div> <div class="ttc" id="class_name_value_pairs_html"><div class="ttname"><a href="class_name_value_pairs.html">NameValuePairs</a></div><div class="ttdoc">Interface for retrieving values given their names. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00290">cryptlib.h:290</a></div></div> <div class="ttc" id="class_t_f___s_s_html"><div class="ttname"><a href="class_t_f___s_s.html">TF_SS</a></div><div class="ttdoc">Trapdoor Function (TF) Signature Scheme. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l02249">pubkey.h:2249</a></div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:57:50 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>