<!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++: ida.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">ida.h</div> </div> </div><!--header--> <div class="contents"> <a href="ida_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">// ida.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 ida.h</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/// \brief Classes for Rabin's Information Dispersal and Shamir's Secret Sharing algorithms</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#ifndef CRYPTOPP_IDA_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#define CRYPTOPP_IDA_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="cryptlib_8h.html">cryptlib.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "mqueue.h"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="filters_8h.html">filters.h</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="secblock_8h.html">secblock.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="stdcpp_8h.html">stdcpp.h</a>"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="misc_8h.html">misc.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> NAMESPACE_BEGIN(<a class="code" href="namespace_crypto_p_p.html">CryptoPP</a>)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/// \brief Secret sharing and information dispersal base class</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"></span><span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_raw_i_d_a.html"> 21</a></span> <span class="comment"></span>class <a class="code" href="class_raw_i_d_a.html">RawIDA</a> : public <a class="code" href="class_auto_signaling.html">AutoSignaling</a><<a class="code" href="class_unflushable.html">Unflushable</a><<a class="code" href="class_multichannel.html">Multichannel</a><<a class="code" href="class_filter.html">Filter</a>> > ></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="class_raw_i_d_a.html">RawIDA</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  : m_threshold (0), m_channelsReady(0), m_channelsFinished(0)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  {Detach(attachment);}</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetThreshold()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_threshold;}</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordtype">void</span> AddOutputChannel(word32 channelId);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">void</span> ChannelData(word32 channelId, <span class="keyword">const</span> byte *inString, <span class="keywordtype">size_t</span> length, <span class="keywordtype">bool</span> messageEnd);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  lword InputBuffered(word32 channelId) <span class="keyword">const</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">void</span> IsolatedInitialize(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="code" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>);</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_raw_i_d_a.html#ade3964428df9a1d872926db0cc2e1251"> 34</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_raw_i_d_a.html#ade3964428df9a1d872926db0cc2e1251">ChannelPut2</a>(<span class="keyword">const</span> std::string &channel, <span class="keyword">const</span> byte *begin, <span class="keywordtype">size_t</span> length, <span class="keywordtype">int</span> messageEnd, <span class="keywordtype">bool</span> blocking)</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="keywordflow">if</span> (!blocking)</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">throw</span> <a class="code" href="struct_buffered_transformation_1_1_blocking_input_only.html">BlockingInputOnly</a>(<span class="stringliteral">"RawIDA"</span>);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  ChannelData(StringToWord<word32>(channel), begin, length, messageEnd != 0);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> 0;</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> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> FlushOutputQueues();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> OutputMessageEnds();</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="keywordtype">unsigned</span> <span class="keywordtype">int</span> InsertInputChannel(word32 channelId);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> LookupInputChannel(word32 channelId) <span class="keyword">const</span>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> ComputeV(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">void</span> PrepareInterpolation();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> ProcessInputQueues();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">typedef</span> std::map<word32, unsigned int> InputChannelMap;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  InputChannelMap m_inputChannelMap;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  InputChannelMap::iterator m_lastMapPosition;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::vector<MessageQueue> m_inputQueues;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::vector<word32> m_inputChannelIds, m_outputChannelIds, m_outputToInput;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  std::vector<std::string> m_outputChannelIdStrings;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::vector<ByteQueue> m_outputQueues;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">int</span> m_threshold;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_channelsReady, m_channelsFinished;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  std::vector<SecBlock<word32> > m_v;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="class_sec_block.html">SecBlock<word32></a> m_u, m_w, m_y;</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="comment"></span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">/// \brief Shamir's Secret Sharing Algorithm</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">/// \details SecretSharing is a variant of Shamir's secret sharing algorithm</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">/// \sa SecretRecovery, SecretRecovery, InformationDispersal, InformationRecovery</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_secret_sharing.html"> 69</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_secret_sharing.html">SecretSharing</a> : <span class="keyword">public</span> <a class="code" href="class_custom_flush_propagation.html">CustomFlushPropagation</a><Filter></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> /// \brief Construct a SecretSharing</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_secret_sharing.html#a03397a282cf7b7ce1ad177db86d45085"> 73</a></span> <span class="comment"></span> <a class="code" href="class_secret_sharing.html#a03397a282cf7b7ce1ad177db86d45085">SecretSharing</a>(<a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, <span class="keywordtype">int</span> threshold, <span class="keywordtype">int</span> nShares, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR, <span class="keywordtype">bool</span> addPadding=<span class="keyword">true</span>)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  : m_rng(rng), m_ida(new <a class="code" href="class_output_proxy.html">OutputProxy</a>(*this, true))</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="class_filter.html#a93817876b45172108fe0342de6442f75">Detach</a>(attachment);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="class_secret_sharing.html#a9bd87681fc1b766ca5a0c96a4a54a813">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<span class="stringliteral">"RecoveryThreshold"</span>, threshold)(<span class="stringliteral">"NumberOfShares"</span>, nShares)(<span class="stringliteral">"AddPadding"</span>, addPadding));</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span> <a class="code" href="class_secret_sharing.html#a9bd87681fc1b766ca5a0c96a4a54a813">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="code" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">size_t</span> <a class="code" href="class_secret_sharing.html#a26acaced75c630173f17ab29f615d409">Put2</a>(<span class="keyword">const</span> byte *begin, <span class="keywordtype">size_t</span> length, <span class="keywordtype">int</span> messageEnd, <span class="keywordtype">bool</span> blocking);</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_secret_sharing.html#a670b6f5ba7ee9e1f029cd199f6722bb6"> 82</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_secret_sharing.html#a670b6f5ba7ee9e1f029cd199f6722bb6">Flush</a>(<span class="keywordtype">bool</span> hardFlush, <span class="keywordtype">int</span> propagation=-1, <span class="keywordtype">bool</span> blocking=<span class="keyword">true</span>) {<span class="keywordflow">return</span> m_ida.Flush(hardFlush, propagation, blocking);}</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="class_random_number_generator.html">RandomNumberGenerator</a> &m_rng;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="class_raw_i_d_a.html">RawIDA</a> m_ida;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">bool</span> m_pad;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> };</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"></span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">/// \brief Shamir's Secret Sharing Algorithm</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">/// \details SecretSharing is a variant of Shamir's secret sharing algorithm</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment">/// \sa SecretRecovery, SecretRecovery, InformationDispersal, InformationRecovery</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_secret_recovery.html"> 94</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_secret_recovery.html">SecretRecovery</a> : <span class="keyword">public</span> <a class="code" href="class_raw_i_d_a.html">RawIDA</a></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> /// \brief Construct a SecretRecovery</span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_secret_recovery.html#a7dea71685af8e496c18e7e42bb6c649b"> 98</a></span> <span class="comment"></span> <a class="code" href="class_secret_recovery.html#a7dea71685af8e496c18e7e42bb6c649b">SecretRecovery</a>(<span class="keywordtype">int</span> threshold, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR, <span class="keywordtype">bool</span> removePadding=<span class="keyword">true</span>)</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  : <a class="code" href="class_raw_i_d_a.html">RawIDA</a>(attachment)</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  {<a class="code" href="class_secret_recovery.html#aac4881f4805b1ff8c662348d61a6d422">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<span class="stringliteral">"RecoveryThreshold"</span>, threshold)(<span class="stringliteral">"RemovePadding"</span>, removePadding));}</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span> <a class="code" href="class_secret_recovery.html#aac4881f4805b1ff8c662348d61a6d422">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="code" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">void</span> FlushOutputQueues();</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">void</span> OutputMessageEnds();</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">bool</span> m_pad;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> };</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"></span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment">/// a variant of Rabin's Information Dispersal Algorithm</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"></span><span class="comment"></span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment">/// \brief Rabin's Information Dispersal Algorithm</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">/// \details InformationDispersal is a variant of Rabin's information dispersal algorithm</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">/// \sa SecretRecovery, SecretRecovery, InformationDispersal, InformationRecovery</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="class_information_dispersal.html"> 117</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_information_dispersal.html">InformationDispersal</a> : <span class="keyword">public</span> <a class="code" href="class_custom_flush_propagation.html">CustomFlushPropagation</a><Filter></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> /// \brief Construct a InformationDispersal</span></div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_information_dispersal.html#a40e812ee9251c018efe7bff39e812efe"> 121</a></span> <span class="comment"></span> <a class="code" href="class_information_dispersal.html#a40e812ee9251c018efe7bff39e812efe">InformationDispersal</a>(<span class="keywordtype">int</span> threshold, <span class="keywordtype">int</span> nShares, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR, <span class="keywordtype">bool</span> addPadding=<span class="keyword">true</span>)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  : m_ida(new <a class="code" href="class_output_proxy.html">OutputProxy</a>(*this, true)), m_pad(false), m_nextChannel(0)</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="class_filter.html#a93817876b45172108fe0342de6442f75">Detach</a>(attachment);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="class_information_dispersal.html#a3901bdfb5959c2ee901bd3a5fe1c161a">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<span class="stringliteral">"RecoveryThreshold"</span>, threshold)(<span class="stringliteral">"NumberOfShares"</span>, nShares)(<span class="stringliteral">"AddPadding"</span>, addPadding));</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">void</span> <a class="code" href="class_information_dispersal.html#a3901bdfb5959c2ee901bd3a5fe1c161a">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="code" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">size_t</span> <a class="code" href="class_information_dispersal.html#a0dd51a1bdc83cea84cd72218730f4744">Put2</a>(<span class="keyword">const</span> byte *begin, <span class="keywordtype">size_t</span> length, <span class="keywordtype">int</span> messageEnd, <span class="keywordtype">bool</span> blocking);</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_information_dispersal.html#aa348e2dd4609c563196f89e1cf2ad35c"> 130</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_information_dispersal.html#aa348e2dd4609c563196f89e1cf2ad35c">Flush</a>(<span class="keywordtype">bool</span> hardFlush, <span class="keywordtype">int</span> propagation=-1, <span class="keywordtype">bool</span> blocking=<span class="keyword">true</span>) {<span class="keywordflow">return</span> m_ida.Flush(hardFlush, propagation, blocking);}</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="class_raw_i_d_a.html">RawIDA</a> m_ida;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">bool</span> m_pad;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_nextChannel;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> };</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"></span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment">/// \brief Rabin's Information Dispersal Algorithm</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment">/// \details InformationDispersal is a variant of Rabin's information dispersal algorithm</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment">/// \sa SecretRecovery, SecretRecovery, InformationDispersal, InformationRecovery</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="class_information_recovery.html"> 142</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_information_recovery.html">InformationRecovery</a> : <span class="keyword">public</span> <a class="code" href="class_raw_i_d_a.html">RawIDA</a></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> {</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> /// \brief Construct a InformationRecovery</span></div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_information_recovery.html#a2722185d09cec0d2adbbc2822982281a"> 146</a></span> <span class="comment"></span> <a class="code" href="class_information_recovery.html#a2722185d09cec0d2adbbc2822982281a">InformationRecovery</a>(<span class="keywordtype">int</span> threshold, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR, <span class="keywordtype">bool</span> removePadding=<span class="keyword">true</span>)</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  : <a class="code" href="class_raw_i_d_a.html">RawIDA</a>(attachment), m_pad(false)</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {<a class="code" href="class_information_recovery.html#addaa1b3de9087ae7be368086fc1108a5">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<span class="stringliteral">"RecoveryThreshold"</span>, threshold)(<span class="stringliteral">"RemovePadding"</span>, removePadding));}</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordtype">void</span> <a class="code" href="class_information_recovery.html#addaa1b3de9087ae7be368086fc1108a5">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="code" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordtype">void</span> FlushOutputQueues();</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">void</span> OutputMessageEnds();</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">bool</span> m_pad;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="class_byte_queue.html">ByteQueue</a> m_queue;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> };</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_padding_remover.html"> 160</a></span> <span class="keyword">class </span><a class="code" href="class_padding_remover.html">PaddingRemover</a> : <span class="keyword">public</span> <a class="code" href="class_unflushable.html">Unflushable</a><Filter></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="class_padding_remover.html">PaddingRemover</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULLPTR)</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  : m_possiblePadding(<span class="keyword">false</span>), m_zeroCount(0) {<a class="code" href="class_filter.html#a93817876b45172108fe0342de6442f75">Detach</a>(attachment);}</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="class_padding_remover.html#a069c4ebead6f2ed5393628b039b1688f"> 166</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_padding_remover.html#a069c4ebead6f2ed5393628b039b1688f">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &parameters)</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {CRYPTOPP_UNUSED(parameters); m_possiblePadding = <span class="keyword">false</span>;}</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">size_t</span> <a class="code" href="class_padding_remover.html#aae803b9a474a16cc10ae3ab66630b299">Put2</a>(<span class="keyword">const</span> byte *begin, <span class="keywordtype">size_t</span> length, <span class="keywordtype">int</span> messageEnd, <span class="keywordtype">bool</span> blocking);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// GetPossiblePadding() == false at the end of a message indicates incorrect padding</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">bool</span> GetPossiblePadding()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_possiblePadding;}</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordtype">bool</span> m_possiblePadding;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  lword m_zeroCount;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> };</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> NAMESPACE_END</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_padding_remover_html_a069c4ebead6f2ed5393628b039b1688f"><div class="ttname"><a href="class_padding_remover.html#a069c4ebead6f2ed5393628b039b1688f">PaddingRemover::IsolatedInitialize</a></div><div class="ttdeci">void IsolatedInitialize(const NameValuePairs &parameters)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00166">ida.h:166</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="class_raw_i_d_a_html"><div class="ttname"><a href="class_raw_i_d_a.html">RawIDA</a></div><div class="ttdoc">Secret sharing and information dispersal base class. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00021">ida.h:21</a></div></div> <div class="ttc" id="class_output_proxy_html"><div class="ttname"><a href="class_output_proxy.html">OutputProxy</a></div><div class="ttdoc">Filter class that is a proxy for a sink. </div><div class="ttdef"><b>Definition:</b> <a href="filters_8h_source.html#l00928">filters.h:928</a></div></div> <div class="ttc" id="class_sec_block_html"><div class="ttname"><a href="class_sec_block.html">SecBlock< word32 ></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_raw_i_d_a_html_ade3964428df9a1d872926db0cc2e1251"><div class="ttname"><a href="class_raw_i_d_a.html#ade3964428df9a1d872926db0cc2e1251">RawIDA::ChannelPut2</a></div><div class="ttdeci">size_t ChannelPut2(const std::string &channel, const byte *begin, size_t length, int messageEnd, bool blocking)</div><div class="ttdoc">Input multiple bytes for processing on a channel. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00034">ida.h:34</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="stdcpp_8h_html"><div class="ttname"><a href="stdcpp_8h.html">stdcpp.h</a></div><div class="ttdoc">Common C++ header files. </div></div> <div class="ttc" id="class_secret_sharing_html_a670b6f5ba7ee9e1f029cd199f6722bb6"><div class="ttname"><a href="class_secret_sharing.html#a670b6f5ba7ee9e1f029cd199f6722bb6">SecretSharing::Flush</a></div><div class="ttdeci">bool Flush(bool hardFlush, int propagation=-1, bool blocking=true)</div><div class="ttdoc">Flush buffered input and/or output, with signal propagation. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00082">ida.h:82</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_secret_recovery_html_aac4881f4805b1ff8c662348d61a6d422"><div class="ttname"><a href="class_secret_recovery.html#aac4881f4805b1ff8c662348d61a6d422">SecretRecovery::IsolatedInitialize</a></div><div class="ttdeci">void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div></div> <div class="ttc" id="class_custom_flush_propagation_html"><div class="ttname"><a href="class_custom_flush_propagation.html">CustomFlushPropagation</a></div><div class="ttdoc">Interface for custom flush signals propagation. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00171">simple.h:171</a></div></div> <div class="ttc" id="channels_8h_html"><div class="ttname"><a href="channels_8h.html">channels.h</a></div><div class="ttdoc">Classes for multiple named channels. </div></div> <div class="ttc" id="secblock_8h_html"><div class="ttname"><a href="secblock_8h.html">secblock.h</a></div><div class="ttdoc">Classes and functions for secure memory allocations. </div></div> <div class="ttc" id="class_information_dispersal_html_a0dd51a1bdc83cea84cd72218730f4744"><div class="ttname"><a href="class_information_dispersal.html#a0dd51a1bdc83cea84cd72218730f4744">InformationDispersal::Put2</a></div><div class="ttdeci">size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking)</div><div class="ttdoc">Input multiple bytes for processing. </div></div> <div class="ttc" id="class_filter_html_a93817876b45172108fe0342de6442f75"><div class="ttname"><a href="class_filter.html#a93817876b45172108fe0342de6442f75">Filter::Detach</a></div><div class="ttdeci">void Detach(BufferedTransformation *newAttachment=NULL)</div><div class="ttdoc">Replace an attached transformation. </div><div class="ttdef"><b>Definition:</b> <a href="filters_8cpp_source.html#l00050">filters.cpp:50</a></div></div> <div class="ttc" id="algparam_8h_html_aa13eee74de98cf8aaa7e83f4fae7f28b"><div class="ttname"><a href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a></div><div class="ttdeci">AlgorithmParameters MakeParameters(const char *name, const T &value, bool throwIfNotUsed=true)</div><div class="ttdoc">Create an object that implements NameValuePairs. </div><div class="ttdef"><b>Definition:</b> <a href="algparam_8h_source.html#l00502">algparam.h:502</a></div></div> <div class="ttc" id="class_information_recovery_html_addaa1b3de9087ae7be368086fc1108a5"><div class="ttname"><a href="class_information_recovery.html#addaa1b3de9087ae7be368086fc1108a5">InformationRecovery::IsolatedInitialize</a></div><div class="ttdeci">void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div></div> <div class="ttc" id="class_padding_remover_html"><div class="ttname"><a href="class_padding_remover.html">PaddingRemover</a></div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00160">ida.h:160</a></div></div> <div class="ttc" id="class_secret_sharing_html_a03397a282cf7b7ce1ad177db86d45085"><div class="ttname"><a href="class_secret_sharing.html#a03397a282cf7b7ce1ad177db86d45085">SecretSharing::SecretSharing</a></div><div class="ttdeci">SecretSharing(RandomNumberGenerator &rng, int threshold, int nShares, BufferedTransformation *attachment=NULL, bool addPadding=true)</div><div class="ttdoc">Construct a SecretSharing. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00073">ida.h:73</a></div></div> <div class="ttc" id="class_information_dispersal_html_a3901bdfb5959c2ee901bd3a5fe1c161a"><div class="ttname"><a href="class_information_dispersal.html#a3901bdfb5959c2ee901bd3a5fe1c161a">InformationDispersal::IsolatedInitialize</a></div><div class="ttdeci">void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div></div> <div class="ttc" id="class_information_dispersal_html_a40e812ee9251c018efe7bff39e812efe"><div class="ttname"><a href="class_information_dispersal.html#a40e812ee9251c018efe7bff39e812efe">InformationDispersal::InformationDispersal</a></div><div class="ttdeci">InformationDispersal(int threshold, int nShares, BufferedTransformation *attachment=NULL, bool addPadding=true)</div><div class="ttdoc">Construct a InformationDispersal. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00121">ida.h:121</a></div></div> <div class="ttc" id="class_secret_sharing_html_a26acaced75c630173f17ab29f615d409"><div class="ttname"><a href="class_secret_sharing.html#a26acaced75c630173f17ab29f615d409">SecretSharing::Put2</a></div><div class="ttdeci">size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking)</div><div class="ttdoc">Input multiple bytes for processing. </div></div> <div class="ttc" id="class_byte_queue_html"><div class="ttname"><a href="class_byte_queue.html">ByteQueue</a></div><div class="ttdoc">Data structure used to store byte strings. </div><div class="ttdef"><b>Definition:</b> <a href="queue_8h_source.html#l00018">queue.h:18</a></div></div> <div class="ttc" id="filters_8h_html"><div class="ttname"><a href="filters_8h.html">filters.h</a></div><div class="ttdoc">Implementation of BufferedTransformation&#39;s attachment interface. </div></div> <div class="ttc" id="struct_buffered_transformation_1_1_blocking_input_only_html"><div class="ttname"><a href="struct_buffered_transformation_1_1_blocking_input_only.html">BufferedTransformation::BlockingInputOnly</a></div><div class="ttdoc">Exception thrown by objects that have not implemented nonblocking input processing. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01669">cryptlib.h:1669</a></div></div> <div class="ttc" id="cryptlib_8h_html_a04be65ada92ccb1e6aac0d94b4cc394b"><div class="ttname"><a href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a></div><div class="ttdeci">const NameValuePairs g_nullNameValuePairs</div><div class="ttdoc">An empty set of name-value pairs. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00494">cryptlib.h:494</a></div></div> <div class="ttc" id="class_unflushable_html"><div class="ttname"><a href="class_unflushable.html">Unflushable</a></div><div class="ttdoc">Base class for unflushable filters. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00108">simple.h:108</a></div></div> <div class="ttc" id="class_information_recovery_html"><div class="ttname"><a href="class_information_recovery.html">InformationRecovery</a></div><div class="ttdoc">Rabin&#39;s Information Dispersal Algorithm. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00142">ida.h:142</a></div></div> <div class="ttc" id="class_auto_signaling_html"><div class="ttname"><a href="class_auto_signaling.html">AutoSignaling</a></div><div class="ttdoc">Provides auto signaling support. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00289">simple.h:289</a></div></div> <div class="ttc" id="class_filter_html"><div class="ttname"><a href="class_filter.html">Filter</a></div><div class="ttdoc">Implementation of BufferedTransformation&#39;s attachment interface. </div><div class="ttdef"><b>Definition:</b> <a href="filters_8h_source.html#l00035">filters.h:35</a></div></div> <div class="ttc" id="class_secret_sharing_html_a9bd87681fc1b766ca5a0c96a4a54a813"><div class="ttname"><a href="class_secret_sharing.html#a9bd87681fc1b766ca5a0c96a4a54a813">SecretSharing::IsolatedInitialize</a></div><div class="ttdeci">void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div></div> <div class="ttc" id="class_secret_recovery_html_a7dea71685af8e496c18e7e42bb6c649b"><div class="ttname"><a href="class_secret_recovery.html#a7dea71685af8e496c18e7e42bb6c649b">SecretRecovery::SecretRecovery</a></div><div class="ttdeci">SecretRecovery(int threshold, BufferedTransformation *attachment=NULL, bool removePadding=true)</div><div class="ttdoc">Construct a SecretRecovery. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00098">ida.h:98</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_secret_recovery_html"><div class="ttname"><a href="class_secret_recovery.html">SecretRecovery</a></div><div class="ttdoc">Shamir&#39;s Secret Sharing Algorithm. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00094">ida.h:94</a></div></div> <div class="ttc" id="class_padding_remover_html_aae803b9a474a16cc10ae3ab66630b299"><div class="ttname"><a href="class_padding_remover.html#aae803b9a474a16cc10ae3ab66630b299">PaddingRemover::Put2</a></div><div class="ttdeci">size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking)</div><div class="ttdoc">Input multiple bytes for processing. </div></div> <div class="ttc" id="class_multichannel_html"><div class="ttname"><a href="class_multichannel.html">Multichannel</a></div><div class="ttdoc">Multiple channels support for custom signal processing. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00225">simple.h:225</a></div></div> <div class="ttc" id="class_information_dispersal_html"><div class="ttname"><a href="class_information_dispersal.html">InformationDispersal</a></div><div class="ttdoc">a variant of Rabin&#39;s Information Dispersal Algorithm </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00117">ida.h:117</a></div></div> <div class="ttc" id="class_secret_sharing_html"><div class="ttname"><a href="class_secret_sharing.html">SecretSharing</a></div><div class="ttdoc">Shamir&#39;s Secret Sharing Algorithm. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00069">ida.h:69</a></div></div> <div class="ttc" id="class_information_recovery_html_a2722185d09cec0d2adbbc2822982281a"><div class="ttname"><a href="class_information_recovery.html#a2722185d09cec0d2adbbc2822982281a">InformationRecovery::InformationRecovery</a></div><div class="ttdeci">InformationRecovery(int threshold, BufferedTransformation *attachment=NULL, bool removePadding=true)</div><div class="ttdoc">Construct a InformationRecovery. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00146">ida.h:146</a></div></div> <div class="ttc" id="class_information_dispersal_html_aa348e2dd4609c563196f89e1cf2ad35c"><div class="ttname"><a href="class_information_dispersal.html#aa348e2dd4609c563196f89e1cf2ad35c">InformationDispersal::Flush</a></div><div class="ttdeci">bool Flush(bool hardFlush, int propagation=-1, bool blocking=true)</div><div class="ttdoc">Flush buffered input and/or output, with signal propagation. </div><div class="ttdef"><b>Definition:</b> <a href="ida_8h_source.html#l00130">ida.h:130</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><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:57:54 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>