<!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.5"/> <title>BeeCrypt: include/beecrypt/beecrypt.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 style="padding-left: 0.5em;"> <div id="projectname">BeeCrypt  <span id="projectnumber">4.2.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_7519372152c32ce484a8cde0fb6b8cd0.html">beecrypt</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">beecrypt.h</div> </div> </div><!--header--> <div class="contents"> <a href="beecrypt_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">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 1999, 2000, 2001, 2002 X-Way Rights BV</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * </span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * This library is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * Lesser General Public License for more details.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * </span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * License along with this library; if not, write to the Free Software</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef _BEECRYPT_H</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor"></span><span class="preprocessor">#define _BEECRYPT_H</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="api_8h.html">beecrypt/api.h</a>"</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="memchunk_8h.html">beecrypt/memchunk.h</a>"</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="mpnumber_8h.html">beecrypt/mpnumber.h</a>"</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">/*</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> * Entropy Sources</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> */</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__ES__m.html#ga7c36ced3ce2b28b3d61b13ba0b2f9d4d"> 46</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__ES__m.html#ga7c36ced3ce2b28b3d61b13ba0b2f9d4d">entropyNext</a>)(<a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structentropySource.html"> 53</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structentropySource.html">entropySource</a></div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> #else</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> struct _entropySource</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> #endif</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div> <div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structentropySource.html#a5a323b46cb25d2278028b0cdb0b8d4c1"> 61</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structentropySource.html#a5a323b46cb25d2278028b0cdb0b8d4c1">name</a>;</div> <div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structentropySource.html#a6a125f3ed8026d8b7aedb49135d9c169"> 65</a></span>  <span class="keyword">const</span> <a class="code" href="group__ES__m.html#ga7c36ced3ce2b28b3d61b13ba0b2f9d4d">entropyNext</a> <a class="code" href="structentropySource.html#a6a125f3ed8026d8b7aedb49135d9c169">next</a>;</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> };</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_entropySource <a class="code" href="structentropySource.html">entropySource</a>;</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a2e630fc8a21080fa4c67b18490f28a33">entropySourceCount</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">const</span> <a class="code" href="structentropySource.html">entropySource</a>* <a class="code" href="beecrypt_8h.html#ada43c2b83992195fbc6434412bbd6d26">entropySourceGet</a>(<span class="keywordtype">int</span> n);</div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">const</span> <a class="code" href="structentropySource.html">entropySource</a>* <a class="code" href="beecrypt_8h.html#aaffe227dcd8be091603342767d7d1b79">entropySourceFind</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">const</span> <a class="code" href="structentropySource.html">entropySource</a>* <a class="code" href="beecrypt_8h.html#afb941723fc8e79495a6e8f77639ce29a">entropySourceDefault</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a4a298808ee4ff5970f0bb66ed535ec21">entropyGatherNext</a>(<a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</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="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment">/*</span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> * Pseudo-random Number Generators</span></div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment"> */</span></div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> <div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94"> 133</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>;</div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> <div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a4d82f6868b6d41e1d387023d4e5d73ce"> 135</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a4d82f6868b6d41e1d387023d4e5d73ce">randomGeneratorSetup</a> )(<a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>*);</div> <div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a8d1319ccc33a123684c53f94a1a81bb1"> 136</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a8d1319ccc33a123684c53f94a1a81bb1">randomGeneratorSeed</a> )(<a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#ad2e5b19992c14145ff9d01314d80942b"> 137</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#ad2e5b19992c14145ff9d01314d80942b">randomGeneratorNext</a> )(<a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#aeeaa29f26954bdf866bd22cf097d4648"> 138</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#aeeaa29f26954bdf866bd22cf097d4648">randomGeneratorCleanup</a>)(<a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>*);</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> <span class="comment">/*</span></div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> * The struct 'randomGenerator' holds information and pointers to code specific</span></div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> * to each random generator. Each specific random generator MUST be written to</span></div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"> * be multithread safe.</span></div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> *</span></div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> * WARNING: each randomGenerator, when used in cryptographic applications, MUST</span></div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> * be guaranteed to be of suitable quality and strength (i.e. don't use the</span></div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> * random() function found in most UN*X-es).</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"> * Multiple instances of each randomGenerator can be used (even concurrently),</span></div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> * provided they each use their own randomGeneratorParam parameters, a chunk</span></div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> * of memory which must be at least as large as indicated by the paramsize</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> * field.</span></div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> *</span></div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> */</span></div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="structrandomGenerator.html"> 161</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structrandomGenerator.html">randomGenerator</a></div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> #else</div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> struct _randomGenerator</div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> #endif</div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> {</div> <div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#aa4837e4c4416abb19fcafe56c1b040c4"> 169</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structrandomGenerator.html#aa4837e4c4416abb19fcafe56c1b040c4">name</a>;</div> <div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#adc5a15772ae7b4411722aa1ecac05690"> 175</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structrandomGenerator.html#adc5a15772ae7b4411722aa1ecac05690">paramsize</a>;</div> <div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#ad3bca12f5cff25a3563d282a6c4f0ba0"> 179</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a4d82f6868b6d41e1d387023d4e5d73ce">randomGeneratorSetup</a> <a class="code" href="structrandomGenerator.html#ad3bca12f5cff25a3563d282a6c4f0ba0">setup</a>;</div> <div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#af9bdd502762ce093754fb3376d1a0d3c"> 183</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a8d1319ccc33a123684c53f94a1a81bb1">randomGeneratorSeed</a> <a class="code" href="structrandomGenerator.html#af9bdd502762ce093754fb3376d1a0d3c">seed</a>;</div> <div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#aa89014317855bac8ccf05e78858a5274"> 187</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#ad2e5b19992c14145ff9d01314d80942b">randomGeneratorNext</a> <a class="code" href="structrandomGenerator.html#aa89014317855bac8ccf05e78858a5274">next</a>;</div> <div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="structrandomGenerator.html#afa9abf10773ffd14f884d41554be393c"> 191</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#aeeaa29f26954bdf866bd22cf097d4648">randomGeneratorCleanup</a> <a class="code" href="structrandomGenerator.html#afa9abf10773ffd14f884d41554be393c">cleanup</a>;</div> <div class="line"><a name="l00192"></a><span class="lineno"> 192</span> };</div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_randomGenerator <a class="code" href="structrandomGenerator.html">randomGenerator</a>;</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment">/*</span></div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"> * You can use the following functions to find random generators implemented by</span></div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> * the library:</span></div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> *</span></div> <div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> * randomGeneratorCount returns the number of generators available.</span></div> <div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> *</span></div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> * randomGeneratorGet returns the random generator with a given index (starting</span></div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> * at zero, up to randomGeneratorCount() - 1), or NULL if the index was out of</span></div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> * bounds.</span></div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> *</span></div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"> * randomGeneratorFind returns the random generator with the given name, or</span></div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment"> * NULL if no random generator exists with that name.</span></div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> */</span></div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a01abf6229b3cf2218a80db61b15523ca">randomGeneratorCount</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>* <a class="code" href="beecrypt_8h.html#a1bb64c9048ca225e217f7b389a15e15f">randomGeneratorGet</a>(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>* <a class="code" href="beecrypt_8h.html#adfe51a5fdbc3a7637df135930f3fc736">randomGeneratorFind</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*);</div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>* <a class="code" href="beecrypt_8h.html#a75ec034f594a52065782a5c0b39d39d5">randomGeneratorDefault</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">/*</span></div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> * The struct 'randomGeneratorContext' is used to contain both the functional</span></div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> * part (the randomGenerator), and its parameters.</span></div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> */</span></div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div> <div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="structrandomGeneratorContext.html"> 235</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a></div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span> #else</div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span> struct _randomGeneratorContext</div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span> #endif</div> <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> {</div> <div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="structrandomGeneratorContext.html#afd4214bc30c8782641fdd2f22e14b823"> 240</a></span>  <span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>* <a class="code" href="structrandomGeneratorContext.html#afd4214bc30c8782641fdd2f22e14b823">rng</a>;</div> <div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structrandomGeneratorContext.html#a1db92eaad52cfc38ecf96beac34ee360"> 241</a></span>  <a class="code" href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a>* <a class="code" href="structrandomGeneratorContext.html#a1db92eaad52cfc38ecf96beac34ee360">param</a>;</div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor"> #ifdef __cplusplus</span></div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor"></span> <a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>();</div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>(<span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>*);</div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  ~<a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>();</div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="preprocessor"> #endif</span></div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor"></span>};</div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_randomGeneratorContext <a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>;</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment">/*</span></div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> * The following functions can be used to initialize and free a</span></div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> * randomGeneratorContext. Initializing will allocate a buffer of the size</span></div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> * required by the randomGenerator, freeing will deallocate that buffer.</span></div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"> */</span></div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#af0fe12db4e6babe65495bd6dfee59200">randomGeneratorContextInit</a>(<a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>*, <span class="keyword">const</span> <a class="code" href="structrandomGenerator.html">randomGenerator</a>*);</div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a6aee4a637885b2b1a9a4927e842af6c9">randomGeneratorContextFree</a>(<a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>*);</div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a6de16f2df538d071c357144bd119edb6">randomGeneratorContextNext</a>(<a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a258c5f71055b05fcc2f52f63ba390d1a">randomGeneratorContextSeed</a>(<a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment">/*</span></div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="comment"> * Hash Functions</span></div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment"> */</span></div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div> <div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387"> 284</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a>;</div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div> <div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a862f28c4090c61e27ee3a51c81bbb58c"> 286</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a862f28c4090c61e27ee3a51c81bbb58c">hashFunctionReset</a> )(<a class="code" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a>*);</div> <div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#adedf90e4dd8f70073c38dbd590799575"> 287</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#adedf90e4dd8f70073c38dbd590799575">hashFunctionUpdate</a>)(<a class="code" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a0880b04490ee9c7440e48c7156fc4f23"> 288</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a0880b04490ee9c7440e48c7156fc4f23">hashFunctionDigest</a>)(<a class="code" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment">/*</span></div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"> * The struct 'hashFunction' holds information and pointers to code specific</span></div> <div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment"> * to each hash function. Specific hash functions MAY be written to be</span></div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="comment"> * multithread-safe.</span></div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment"> *</span></div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment"> * NOTE: data MUST have a size (in bytes) of at least 'digestsize' as described</span></div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment"> * in the hashFunction struct.</span></div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment"> * NOTE: for safety reasons, after calling digest, each specific implementation</span></div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment"> * MUST reset itself so that previous values in the parameters are erased.</span></div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment"> */</span></div> <div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="structhashFunction.html"> 301</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structhashFunction.html">hashFunction</a></div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span> #else</div> <div class="line"><a name="l00303"></a><span class="lineno"> 303</span> struct _hashFunction</div> <div class="line"><a name="l00304"></a><span class="lineno"> 304</span> #endif</div> <div class="line"><a name="l00305"></a><span class="lineno"> 305</span> {</div> <div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="structhashFunction.html#a7bdc898a8445ccb3f9e1ac74316b5666"> 306</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structhashFunction.html#a7bdc898a8445ccb3f9e1ac74316b5666">name</a>;</div> <div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="structhashFunction.html#ad34fdbf8f2f7a2ffc66449dc0ff47593"> 307</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structhashFunction.html#ad34fdbf8f2f7a2ffc66449dc0ff47593">paramsize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="structhashFunction.html#a3fd78b788de29241a4e9991c4d80f11b"> 308</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structhashFunction.html#a3fd78b788de29241a4e9991c4d80f11b">blocksize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="structhashFunction.html#a02516a82d753190f953a0c0929a74ae5"> 309</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structhashFunction.html#a02516a82d753190f953a0c0929a74ae5">digestsize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="structhashFunction.html#aa51a0b4668ecfb06ea497d673ee248c4"> 310</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a862f28c4090c61e27ee3a51c81bbb58c">hashFunctionReset</a> <a class="code" href="structhashFunction.html#aa51a0b4668ecfb06ea497d673ee248c4">reset</a>;</div> <div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="structhashFunction.html#a98dd98a8cf4876963bfa8d77867eaa0e"> 311</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#adedf90e4dd8f70073c38dbd590799575">hashFunctionUpdate</a> <a class="code" href="structhashFunction.html#a98dd98a8cf4876963bfa8d77867eaa0e">update</a>;</div> <div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="structhashFunction.html#a51569795a0d4a519305d6c1263673ad2"> 312</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a0880b04490ee9c7440e48c7156fc4f23">hashFunctionDigest</a> <a class="code" href="structhashFunction.html#a51569795a0d4a519305d6c1263673ad2">digest</a>;</div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span> };</div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_hashFunction <a class="code" href="structhashFunction.html">hashFunction</a>;</div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment">/*</span></div> <div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="comment"> * You can use the following functions to find hash functions implemented by</span></div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment"> * the library:</span></div> <div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment"> *</span></div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="comment"> * hashFunctionCount returns the number of hash functions available.</span></div> <div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment"> *</span></div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="comment"> * hashFunctionGet returns the hash function with a given index (starting</span></div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment"> * at zero, up to hashFunctionCount() - 1), or NULL if the index was out of</span></div> <div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment"> * bounds.</span></div> <div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment"> *</span></div> <div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"> * hashFunctionFind returns the hash function with the given name, or</span></div> <div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="comment"> * NULL if no hash function exists with that name.</span></div> <div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment"> */</span></div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a80b63b9d3fc63f334d18d1a37b8c0837">hashFunctionCount</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>* <a class="code" href="beecrypt_8h.html#a5aeb08c14094bb6f148aebc09c8c4056">hashFunctionGet</a>(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>* <a class="code" href="beecrypt_8h.html#a9204a2c7e01767e32241350e6ecf7252">hashFunctionFind</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*);</div> <div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>* <a class="code" href="beecrypt_8h.html#aa6a06eb76b04e62edb36340f602b6fff">hashFunctionDefault</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div> <div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="comment">/*</span></div> <div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="comment"> * The struct 'hashFunctionContext' is used to contain both the functional</span></div> <div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="comment"> * part (the hashFunction), and its parameters.</span></div> <div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="comment"> */</span></div> <div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="structhashFunctionContext.html"> 355</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structhashFunctionContext.html">hashFunctionContext</a></div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span> #else</div> <div class="line"><a name="l00357"></a><span class="lineno"> 357</span> struct _hashFunctionContext</div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span> #endif</div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span> {</div> <div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="structhashFunctionContext.html#a0171fc232d5891db8cd9c9e35429b43c"> 360</a></span>  <span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>* <a class="code" href="structhashFunctionContext.html#a0171fc232d5891db8cd9c9e35429b43c">algo</a>;</div> <div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="structhashFunctionContext.html#ab9c03612efb3d32053f3669297493f75"> 361</a></span>  <a class="code" href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a>* <a class="code" href="structhashFunctionContext.html#ab9c03612efb3d32053f3669297493f75">param</a>;</div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div> <div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="preprocessor"> #ifdef __cplusplus</span></div> <div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="preprocessor"></span> <a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>();</div> <div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>(<span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>*);</div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  ~<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>();</div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="preprocessor"> #endif</span></div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="preprocessor"></span>};</div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_hashFunctionContext <a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>;</div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment">/*</span></div> <div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="comment"> * The following functions can be used to initialize and free a</span></div> <div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"> * hashFunctionContext. Initializing will allocate a buffer of the size</span></div> <div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"> * required by the hashFunction, freeing will deallocate that buffer.</span></div> <div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"> */</span></div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div> <div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00385"></a><span class="lineno"> 385</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aadf3f9eeeb2470234f81b01681c65407">hashFunctionContextInit</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structhashFunction.html">hashFunction</a>*);</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a0bf1ac8c6b4428ee70b750a6c9b02f69">hashFunctionContextFree</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*);</div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a190d3e4c22c315fed2662a11b333bdac">hashFunctionContextReset</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*);</div> <div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#afe58d7195eaaf3d81cb92a5928de3fc3">hashFunctionContextUpdate</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#afa41fb029463ab0bd409296b2fa891f6">hashFunctionContextUpdateMC</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmemchunk.html">memchunk</a>*);</div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a327408a893dfada3a2b3964223d7ca8f">hashFunctionContextUpdateMP</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a5b643b26dd94e101dc987f97cb71b9e8">hashFunctionContextDigest</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a2b746f73795f8fc8248fe53f360489b5">hashFunctionContextDigestMP</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aa51655727095acce4c7b4a800f812f3e">hashFunctionContextDigestMatch</a>(<a class="code" href="structhashFunctionContext.html">hashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div> <div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="comment">/*</span></div> <div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="comment"> * Keyed Hash Functions, a.k.a. Message Authentication Codes</span></div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="comment"> */</span></div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span> </div> <div class="line"><a name="l00414"></a><span class="lineno"><a class="line" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d"> 414</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>;</div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div> <div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a6f67228e64a6c6b6005fe85f7234a397"> 416</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a6f67228e64a6c6b6005fe85f7234a397">keyedHashFunctionSetup</a> )(<a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00417"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a76368dcfe764752e23c7505fb9b7cbc2"> 417</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a76368dcfe764752e23c7505fb9b7cbc2">keyedHashFunctionReset</a> )(<a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>*);</div> <div class="line"><a name="l00418"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a240f02f2647968752d3f4e52f88f54bc"> 418</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#a240f02f2647968752d3f4e52f88f54bc">keyedHashFunctionUpdate</a> )(<a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#abef2dc2a954271d06eb908d9cb8f612f"> 419</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="beecrypt_8h.html#abef2dc2a954271d06eb908d9cb8f612f">keyedHashFunctionDigest</a> )(<a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div> <div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment">/*</span></div> <div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="comment"> * The struct 'keyedHashFunction' holds information and pointers to code</span></div> <div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment"> * specific to each keyed hash function. Specific keyed hash functions MAY be</span></div> <div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="comment"> * written to be multithread-safe.</span></div> <div class="line"><a name="l00425"></a><span class="lineno"> 425</span> <span class="comment"> *</span></div> <div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment"> * The struct field 'keybitsmin' contains the minimum number of bits a key</span></div> <div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment"> * must contains, 'keybitsmax' the maximum number of bits a key may contain,</span></div> <div class="line"><a name="l00428"></a><span class="lineno"> 428</span> <span class="comment"> * 'keybitsinc', the increment in bits that may be used between min and max.</span></div> <div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="comment"> * </span></div> <div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment"> * NOTE: data must be at least have a bytesize of 'digestsize' as described</span></div> <div class="line"><a name="l00431"></a><span class="lineno"> 431</span> <span class="comment"> * in the keyedHashFunction struct.</span></div> <div class="line"><a name="l00432"></a><span class="lineno"> 432</span> <span class="comment"> * NOTE: for safety reasons, after calling digest, each specific implementation</span></div> <div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment"> * MUST reset itself so that previous values in the parameters are erased.</span></div> <div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment"> */</span></div> <div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html"> 436</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a></div> <div class="line"><a name="l00437"></a><span class="lineno"> 437</span> #else</div> <div class="line"><a name="l00438"></a><span class="lineno"> 438</span> struct _keyedHashFunction</div> <div class="line"><a name="l00439"></a><span class="lineno"> 439</span> #endif</div> <div class="line"><a name="l00440"></a><span class="lineno"> 440</span> {</div> <div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a0c9907ba5aad681f7a539ca293c8b776"> 441</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structkeyedHashFunction.html#a0c9907ba5aad681f7a539ca293c8b776">name</a>;</div> <div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#ab410f811d5cc9e0a8caa4e68e90b04ee"> 442</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#ab410f811d5cc9e0a8caa4e68e90b04ee">paramsize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#af12982a1b339e3647b2f301be4c70e54"> 443</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#af12982a1b339e3647b2f301be4c70e54">blocksize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00444"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a16ca496247b9ae5bcd60db1dae236e21"> 444</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#a16ca496247b9ae5bcd60db1dae236e21">digestsize</a>; <span class="comment">/* in bytes */</span></div> <div class="line"><a name="l00445"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a9cdf44139400f0d3ad24fb275664318a"> 445</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#a9cdf44139400f0d3ad24fb275664318a">keybitsmin</a>; <span class="comment">/* in bits */</span></div> <div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#acdaf9541f5cdefac32a2e67121e01dde"> 446</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#acdaf9541f5cdefac32a2e67121e01dde">keybitsmax</a>; <span class="comment">/* in bits */</span></div> <div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a2ed7d4490e69e9acefc4e9d9e0a4be08"> 447</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structkeyedHashFunction.html#a2ed7d4490e69e9acefc4e9d9e0a4be08">keybitsinc</a>; <span class="comment">/* in bits */</span></div> <div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#ab26144257162ffba627ab2408453afd8"> 448</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a6f67228e64a6c6b6005fe85f7234a397">keyedHashFunctionSetup</a> <a class="code" href="structkeyedHashFunction.html#ab26144257162ffba627ab2408453afd8">setup</a>;</div> <div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a87afb5dfbd84c2db409b1a1416de4110"> 449</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a76368dcfe764752e23c7505fb9b7cbc2">keyedHashFunctionReset</a> <a class="code" href="structkeyedHashFunction.html#a87afb5dfbd84c2db409b1a1416de4110">reset</a>;</div> <div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a8dcbcbe09ad4db164fd6af1749ad0364"> 450</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a240f02f2647968752d3f4e52f88f54bc">keyedHashFunctionUpdate</a> <a class="code" href="structkeyedHashFunction.html#a8dcbcbe09ad4db164fd6af1749ad0364">update</a>;</div> <div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="structkeyedHashFunction.html#a4b51318bf29de33a80be82faeb3a855a"> 451</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#abef2dc2a954271d06eb908d9cb8f612f">keyedHashFunctionDigest</a> <a class="code" href="structkeyedHashFunction.html#a4b51318bf29de33a80be82faeb3a855a">digest</a>;</div> <div class="line"><a name="l00452"></a><span class="lineno"> 452</span> };</div> <div class="line"><a name="l00453"></a><span class="lineno"> 453</span> </div> <div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_keyedHashFunction <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>;</div> <div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00457"></a><span class="lineno"> 457</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="comment">/*</span></div> <div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="comment"> * You can use the following functions to find keyed hash functions implemented</span></div> <div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment"> * by the library:</span></div> <div class="line"><a name="l00461"></a><span class="lineno"> 461</span> <span class="comment"> *</span></div> <div class="line"><a name="l00462"></a><span class="lineno"> 462</span> <span class="comment"> * keyedHashFunctionCount returns the number of keyed hash functions available.</span></div> <div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment"> *</span></div> <div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment"> * keyedHashFunctionGet returns the keyed hash function with a given index</span></div> <div class="line"><a name="l00465"></a><span class="lineno"> 465</span> <span class="comment"> * (starting at zero, up to keyedHashFunctionCount() - 1), or NULL if the index</span></div> <div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment"> * was out of bounds.</span></div> <div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment"> *</span></div> <div class="line"><a name="l00468"></a><span class="lineno"> 468</span> <span class="comment"> * keyedHashFunctionFind returns the keyed hash function with the given name,</span></div> <div class="line"><a name="l00469"></a><span class="lineno"> 469</span> <span class="comment"> * or NULL if no keyed hash function exists with that name.</span></div> <div class="line"><a name="l00470"></a><span class="lineno"> 470</span> <span class="comment"> */</span></div> <div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div> <div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00473"></a><span class="lineno"> 473</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00474"></a><span class="lineno"> 474</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00477"></a><span class="lineno"> 477</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#acdfc8cf976442a8787fc386fd4482643">keyedHashFunctionCount</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>* <a class="code" href="beecrypt_8h.html#a1a562d253fc6d47cbf46bb39a31756de">keyedHashFunctionGet</a>(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>* <a class="code" href="beecrypt_8h.html#a52c030c0c1f7077cc4eb2cd3d26992b4">keyedHashFunctionFind</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*);</div> <div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>* <a class="code" href="beecrypt_8h.html#a3ae8c4a00dc15ed49ebf53cdde9f0654">keyedHashFunctionDefault</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div> <div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00487"></a><span class="lineno"> 487</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00488"></a><span class="lineno"> 488</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00489"></a><span class="lineno"> 489</span> <span class="comment">/*</span></div> <div class="line"><a name="l00490"></a><span class="lineno"> 490</span> <span class="comment"> * The struct 'keyedHashFunctionContext' is used to contain both the functional</span></div> <div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment"> * part (the keyedHashFunction), and its parameters.</span></div> <div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="comment"> */</span></div> <div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00494"></a><span class="lineno"><a class="line" href="structkeyedHashFunctionContext.html"> 494</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a></div> <div class="line"><a name="l00495"></a><span class="lineno"> 495</span> #else</div> <div class="line"><a name="l00496"></a><span class="lineno"> 496</span> struct _keyedHashFunctionContext</div> <div class="line"><a name="l00497"></a><span class="lineno"> 497</span> #endif</div> <div class="line"><a name="l00498"></a><span class="lineno"> 498</span> {</div> <div class="line"><a name="l00499"></a><span class="lineno"><a class="line" href="structkeyedHashFunctionContext.html#a574d8c4b7fdb26e592f7a83f1f1a7d9c"> 499</a></span>  <span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>* <a class="code" href="structkeyedHashFunctionContext.html#a574d8c4b7fdb26e592f7a83f1f1a7d9c">algo</a>;</div> <div class="line"><a name="l00500"></a><span class="lineno"><a class="line" href="structkeyedHashFunctionContext.html#aae6d17b7f643c66b147a4b24f77f2ce1"> 500</a></span>  <a class="code" href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a>* <a class="code" href="structkeyedHashFunctionContext.html#aae6d17b7f643c66b147a4b24f77f2ce1">param</a>;</div> <div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div> <div class="line"><a name="l00502"></a><span class="lineno"> 502</span> <span class="preprocessor"> #ifdef __cplusplus</span></div> <div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="preprocessor"></span> <a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>();</div> <div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>(<span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>*);</div> <div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  ~<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>();</div> <div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="preprocessor"> #endif</span></div> <div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="preprocessor"></span>};</div> <div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div> <div class="line"><a name="l00509"></a><span class="lineno"> 509</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_keyedHashFunctionContext <a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>;</div> <div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00512"></a><span class="lineno"> 512</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="comment">/*</span></div> <div class="line"><a name="l00514"></a><span class="lineno"> 514</span> <span class="comment"> * The following functions can be used to initialize and free a</span></div> <div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="comment"> * keyedHashFunctionContext. Initializing will allocate a buffer of the size</span></div> <div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="comment"> * required by the keyedHashFunction, freeing will deallocate that buffer.</span></div> <div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="comment"> */</span></div> <div class="line"><a name="l00518"></a><span class="lineno"> 518</span> </div> <div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00520"></a><span class="lineno"> 520</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a038a6cdda18a57d81fdf5b7ff4e713d2">keyedHashFunctionContextInit</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structkeyedHashFunction.html">keyedHashFunction</a>*);</div> <div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ae58dba3450e389bd57fa9662246c615c">keyedHashFunctionContextFree</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*);</div> <div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00528"></a><span class="lineno"> 528</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a80018980668ed9121a0d9b843994a1b4">keyedHashFunctionContextSetup</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ab4124cb62091bdc935e7efa3164dc78c">keyedHashFunctionContextReset</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*);</div> <div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a88615d56cb64acbc1488250ddcd612a8">keyedHashFunctionContextUpdate</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a77909d98df4c0279f8484c7cd04fbed7">keyedHashFunctionContextUpdateMC</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmemchunk.html">memchunk</a>*);</div> <div class="line"><a name="l00535"></a><span class="lineno"> 535</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ac7ee3f3cdb341a59804a859bc2d2a1c5">keyedHashFunctionContextUpdateMP</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aebae300c3551a15e114b34b1ea03a7cc">keyedHashFunctionContextDigest</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ae0cdb06fca4d61994ce5f3f7f108e19e">keyedHashFunctionContextDigestMP</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aa229fa59418e9d15628a208933e5a285">keyedHashFunctionContextDigestMatch</a>(<a class="code" href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structmpnumber.html">mpnumber</a>*);</div> <div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div> <div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="comment">/*</span></div> <div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="comment"> * Block ciphers</span></div> <div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="comment"> */</span></div> <div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div> <div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558"> 556</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span></div> <div class="line"><a name="l00557"></a><span class="lineno"> 557</span> {</div> <div class="line"><a name="l00558"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4"> 558</a></span>  <a class="code" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4">NOCRYPT</a>,</div> <div class="line"><a name="l00559"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96"> 559</a></span>  <a class="code" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96">ENCRYPT</a>,</div> <div class="line"><a name="l00560"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11"> 560</a></span>  <a class="code" href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11">DECRYPT</a></div> <div class="line"><a name="l00561"></a><span class="lineno"> 561</span> } <a class="code" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a>;</div> <div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div> <div class="line"><a name="l00568"></a><span class="lineno"><a class="line" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0"> 568</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>;</div> <div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div> <div class="line"><a name="l00573"></a><span class="lineno"><a class="line" href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3"> 573</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3">blockCipherSetup</a> )(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t, <a class="code" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a>);</div> <div class="line"><a name="l00574"></a><span class="lineno"> 574</span> </div> <div class="line"><a name="l00584"></a><span class="lineno"><a class="line" href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25"> 584</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25">blockCipherSetIV</a> )(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00585"></a><span class="lineno"> 585</span> </div> <div class="line"><a name="l00596"></a><span class="lineno"><a class="line" href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af"> 596</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af">blockCipherSetCTR</a> )(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, size_t);</div> <div class="line"><a name="l00597"></a><span class="lineno"> 597</span> </div> <div class="line"><a name="l00598"></a><span class="lineno"> 598</span> </div> <div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5"> 608</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a>)(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*, uint32_t*, <span class="keyword">const</span> uint32_t*);</div> <div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div> <div class="line"><a name="l00621"></a><span class="lineno"><a class="line" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec"> 621</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a>)(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*, uint32_t*, <span class="keyword">const</span> uint32_t*, <span class="keywordtype">unsigned</span> int);</div> <div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div> <div class="line"><a name="l00623"></a><span class="lineno"><a class="line" href="beecrypt_8h.html#a94e1fe0182e49b4fb388d08c93fc1a2c"> 623</a></span> <span class="keyword">typedef</span> uint32_t* (*blockCipherFeedback)(<a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>*);</div> <div class="line"><a name="l00624"></a><span class="lineno"> 624</span> </div> <div class="line"><a name="l00625"></a><span class="lineno"><a class="line" href="structblockCipherRaw.html"> 625</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div> <div class="line"><a name="l00626"></a><span class="lineno"> 626</span> {</div> <div class="line"><a name="l00627"></a><span class="lineno"><a class="line" href="structblockCipherRaw.html#a9a4f2c65a6c023c811b41bc4b7cd2583"> 627</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a> <a class="code" href="structblockCipherRaw.html#a9a4f2c65a6c023c811b41bc4b7cd2583">encrypt</a>;</div> <div class="line"><a name="l00628"></a><span class="lineno"><a class="line" href="structblockCipherRaw.html#a551982eaaff70ffd60e0e873f22bfa92"> 628</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a> <a class="code" href="structblockCipherRaw.html#a551982eaaff70ffd60e0e873f22bfa92">decrypt</a>;</div> <div class="line"><a name="l00629"></a><span class="lineno"> 629</span> } <a class="code" href="structblockCipherRaw.html">blockCipherRaw</a>;</div> <div class="line"><a name="l00630"></a><span class="lineno"> 630</span> </div> <div class="line"><a name="l00631"></a><span class="lineno"><a class="line" href="structblockCipherMode.html"> 631</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div> <div class="line"><a name="l00632"></a><span class="lineno"> 632</span> {</div> <div class="line"><a name="l00633"></a><span class="lineno"><a class="line" href="structblockCipherMode.html#af8f75b18ff2e45136fecbbe9d14d5981"> 633</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a> <a class="code" href="structblockCipherMode.html#af8f75b18ff2e45136fecbbe9d14d5981">encrypt</a>;</div> <div class="line"><a name="l00634"></a><span class="lineno"><a class="line" href="structblockCipherMode.html#acb6ff8380170626b013916ab4231c3b8"> 634</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a> <a class="code" href="structblockCipherMode.html#acb6ff8380170626b013916ab4231c3b8">decrypt</a>;</div> <div class="line"><a name="l00635"></a><span class="lineno"> 635</span> } <a class="code" href="structblockCipherMode.html">blockCipherMode</a>;</div> <div class="line"><a name="l00636"></a><span class="lineno"> 636</span> </div> <div class="line"><a name="l00643"></a><span class="lineno"> 643</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00644"></a><span class="lineno"><a class="line" href="structblockCipher.html"> 644</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structblockCipher.html">blockCipher</a></div> <div class="line"><a name="l00645"></a><span class="lineno"> 645</span> #else</div> <div class="line"><a name="l00646"></a><span class="lineno"> 646</span> struct _blockCipher</div> <div class="line"><a name="l00647"></a><span class="lineno"> 647</span> #endif</div> <div class="line"><a name="l00648"></a><span class="lineno"> 648</span> {</div> <div class="line"><a name="l00652"></a><span class="lineno"><a class="line" href="structblockCipher.html#a6c9f539d9632b00c9b98228539254833"> 652</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structblockCipher.html#a6c9f539d9632b00c9b98228539254833">name</a>;</div> <div class="line"><a name="l00656"></a><span class="lineno"><a class="line" href="structblockCipher.html#ae9acc23b1b4742e15acf95c44675fe42"> 656</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structblockCipher.html#ae9acc23b1b4742e15acf95c44675fe42">paramsize</a>;</div> <div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="structblockCipher.html#a8d6c03e6f997f3ad8e8a5e2b315ca805"> 660</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structblockCipher.html#a8d6c03e6f997f3ad8e8a5e2b315ca805">blocksize</a>;</div> <div class="line"><a name="l00664"></a><span class="lineno"><a class="line" href="structblockCipher.html#a3500d157e1433ee5cbf9e9dfbe7b10f1"> 664</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structblockCipher.html#a3500d157e1433ee5cbf9e9dfbe7b10f1">keybitsmin</a>;</div> <div class="line"><a name="l00668"></a><span class="lineno"><a class="line" href="structblockCipher.html#ad42cb478c58af64dd55ba34bea672aea"> 668</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structblockCipher.html#ad42cb478c58af64dd55ba34bea672aea">keybitsmax</a>;</div> <div class="line"><a name="l00673"></a><span class="lineno"><a class="line" href="structblockCipher.html#ad4251f30dce3bb56c6d6d4af5effce21"> 673</a></span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="structblockCipher.html#ad4251f30dce3bb56c6d6d4af5effce21">keybitsinc</a>;</div> <div class="line"><a name="l00677"></a><span class="lineno"><a class="line" href="structblockCipher.html#a103ff53ae70c8b181770b5605d23ab80"> 677</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3">blockCipherSetup</a> <a class="code" href="structblockCipher.html#a103ff53ae70c8b181770b5605d23ab80">setup</a>;</div> <div class="line"><a name="l00681"></a><span class="lineno"><a class="line" href="structblockCipher.html#aada7de9cfffbc798465d99a63b4981c6"> 681</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25">blockCipherSetIV</a> <a class="code" href="structblockCipher.html#aada7de9cfffbc798465d99a63b4981c6">setiv</a>;</div> <div class="line"><a name="l00685"></a><span class="lineno"><a class="line" href="structblockCipher.html#aedabefbac9018470145c344b463669de"> 685</a></span>  <span class="keyword">const</span> <a class="code" href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af">blockCipherSetCTR</a> <a class="code" href="structblockCipher.html#aedabefbac9018470145c344b463669de">setctr</a>;</div> <div class="line"><a name="l00689"></a><span class="lineno"><a class="line" href="structblockCipher.html#acd180c9ad40ef38241a66607ecdb19c7"> 689</a></span>  <span class="keyword">const</span> <a class="code" href="beecrypt_8h.html#a94e1fe0182e49b4fb388d08c93fc1a2c">blockCipherFeedback</a> <a class="code" href="structblockCipher.html#acd180c9ad40ef38241a66607ecdb19c7">getfb</a>;</div> <div class="line"><a name="l00693"></a><span class="lineno"><a class="line" href="structblockCipher.html#a66034965bc9ae136e6dc224c10b84e71"> 693</a></span>  <span class="keyword">const</span> <a class="code" href="structblockCipherRaw.html">blockCipherRaw</a> <a class="code" href="structblockCipher.html#a66034965bc9ae136e6dc224c10b84e71">raw</a>;</div> <div class="line"><a name="l00697"></a><span class="lineno"><a class="line" href="structblockCipher.html#ac1f9c47f7b594006a4d66955dc81bfd9"> 697</a></span>  <span class="keyword">const</span> <a class="code" href="structblockCipherMode.html">blockCipherMode</a> <a class="code" href="structblockCipher.html#ac1f9c47f7b594006a4d66955dc81bfd9">ecb</a>;</div> <div class="line"><a name="l00701"></a><span class="lineno"><a class="line" href="structblockCipher.html#a6fdc2e832bdc281af527640ddb2cb639"> 701</a></span>  <span class="keyword">const</span> <a class="code" href="structblockCipherMode.html">blockCipherMode</a> <a class="code" href="structblockCipher.html#a6fdc2e832bdc281af527640ddb2cb639">cbc</a>;</div> <div class="line"><a name="l00705"></a><span class="lineno"><a class="line" href="structblockCipher.html#a26c65493883b6ae3437d31c5ce433245"> 705</a></span>  <span class="keyword">const</span> <a class="code" href="structblockCipherMode.html">blockCipherMode</a> <a class="code" href="structblockCipher.html#a26c65493883b6ae3437d31c5ce433245">ctr</a>;</div> <div class="line"><a name="l00706"></a><span class="lineno"> 706</span> };</div> <div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div> <div class="line"><a name="l00708"></a><span class="lineno"> 708</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00709"></a><span class="lineno"> 709</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_blockCipher <a class="code" href="structblockCipher.html">blockCipher</a>;</div> <div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00711"></a><span class="lineno"> 711</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00713"></a><span class="lineno"> 713</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00714"></a><span class="lineno"> 714</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00721"></a><span class="lineno"> 721</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00722"></a><span class="lineno"> 722</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aff01dd7e323ca4832559e06dcd21a50f">blockCipherCount</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00723"></a><span class="lineno"> 723</span> </div> <div class="line"><a name="l00732"></a><span class="lineno"> 732</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00733"></a><span class="lineno"> 733</span> <span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>* <a class="code" href="beecrypt_8h.html#ab4a58783bf02d8edec682f5db63b4ab9">blockCipherGet</a>(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00734"></a><span class="lineno"> 734</span> </div> <div class="line"><a name="l00740"></a><span class="lineno"> 740</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00741"></a><span class="lineno"> 741</span> <span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>* <a class="code" href="beecrypt_8h.html#a3e624844316c5c6f0231a0edcf9b0628">blockCipherFind</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*);</div> <div class="line"><a name="l00742"></a><span class="lineno"> 742</span> </div> <div class="line"><a name="l00748"></a><span class="lineno"> 748</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00749"></a><span class="lineno"> 749</span> <span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>* <a class="code" href="beecrypt_8h.html#a4c4c2de90041e552da1c29e3bbe96e7a">blockCipherDefault</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00750"></a><span class="lineno"> 750</span> </div> <div class="line"><a name="l00751"></a><span class="lineno"> 751</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00752"></a><span class="lineno"> 752</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00753"></a><span class="lineno"> 753</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00754"></a><span class="lineno"> 754</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00759"></a><span class="lineno"> 759</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00760"></a><span class="lineno"><a class="line" href="structblockCipherContext.html"> 760</a></span> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structblockCipherContext.html">blockCipherContext</a></div> <div class="line"><a name="l00761"></a><span class="lineno"> 761</span> #else</div> <div class="line"><a name="l00762"></a><span class="lineno"> 762</span> struct _blockCipherContext</div> <div class="line"><a name="l00763"></a><span class="lineno"> 763</span> #endif</div> <div class="line"><a name="l00764"></a><span class="lineno"> 764</span> {</div> <div class="line"><a name="l00768"></a><span class="lineno"><a class="line" href="structblockCipherContext.html#ad964fd13d2d0a2256a8c9b325a9a0da5"> 768</a></span>  <span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>* <a class="code" href="structblockCipherContext.html#ad964fd13d2d0a2256a8c9b325a9a0da5">algo</a>;</div> <div class="line"><a name="l00772"></a><span class="lineno"><a class="line" href="structblockCipherContext.html#a82660a51f5222deb406b856168862fc7"> 772</a></span>  <a class="code" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a>* <a class="code" href="structblockCipherContext.html#a82660a51f5222deb406b856168862fc7">param</a>;</div> <div class="line"><a name="l00775"></a><span class="lineno"><a class="line" href="structblockCipherContext.html#a4eb34e526b36292e8947d641cc31f434"> 775</a></span>  <a class="code" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a> <a class="code" href="structblockCipherContext.html#a4eb34e526b36292e8947d641cc31f434">op</a>;</div> <div class="line"><a name="l00776"></a><span class="lineno"> 776</span> </div> <div class="line"><a name="l00777"></a><span class="lineno"> 777</span> <span class="preprocessor"> #ifdef __cplusplus</span></div> <div class="line"><a name="l00778"></a><span class="lineno"> 778</span> <span class="preprocessor"></span> <a class="code" href="structblockCipherContext.html">blockCipherContext</a>();</div> <div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <a class="code" href="structblockCipherContext.html">blockCipherContext</a>(<span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>*);</div> <div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  ~<a class="code" href="structblockCipherContext.html">blockCipherContext</a>();</div> <div class="line"><a name="l00781"></a><span class="lineno"> 781</span> <span class="preprocessor"> #endif</span></div> <div class="line"><a name="l00782"></a><span class="lineno"> 782</span> <span class="preprocessor"></span>};</div> <div class="line"><a name="l00783"></a><span class="lineno"> 783</span> </div> <div class="line"><a name="l00784"></a><span class="lineno"> 784</span> <span class="preprocessor">#ifndef __cplusplus</span></div> <div class="line"><a name="l00785"></a><span class="lineno"> 785</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_blockCipherContext <a class="code" href="structblockCipherContext.html">blockCipherContext</a>;</div> <div class="line"><a name="l00786"></a><span class="lineno"> 786</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00787"></a><span class="lineno"> 787</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00788"></a><span class="lineno"> 788</span> <span class="comment">/*</span></div> <div class="line"><a name="l00789"></a><span class="lineno"> 789</span> <span class="comment"> * The following functions can be used to initialize and free a</span></div> <div class="line"><a name="l00790"></a><span class="lineno"> 790</span> <span class="comment"> * blockCipherContext. Initializing will allocate a buffer of the size</span></div> <div class="line"><a name="l00791"></a><span class="lineno"> 791</span> <span class="comment"> * required by the blockCipher, freeing will deallocate that buffer.</span></div> <div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment"> */</span></div> <div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div> <div class="line"><a name="l00794"></a><span class="lineno"> 794</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00795"></a><span class="lineno"> 795</span> <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00797"></a><span class="lineno"> 797</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00798"></a><span class="lineno"> 798</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00799"></a><span class="lineno"> 799</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#af0bcba2049fded9263462e08e48e82c1">blockCipherContextInit</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, <span class="keyword">const</span> <a class="code" href="structblockCipher.html">blockCipher</a>*);</div> <div class="line"><a name="l00800"></a><span class="lineno"> 800</span> </div> <div class="line"><a name="l00801"></a><span class="lineno"> 801</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00802"></a><span class="lineno"> 802</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a3c3e95f9cfdc49fd681ecd87c458362d">blockCipherContextSetup</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>, <a class="code" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a>);</div> <div class="line"><a name="l00803"></a><span class="lineno"> 803</span> </div> <div class="line"><a name="l00804"></a><span class="lineno"> 804</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00805"></a><span class="lineno"> 805</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a8effb48ec7132ac6d5872e8887e51ffc">blockCipherContextSetIV</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*);</div> <div class="line"><a name="l00806"></a><span class="lineno"> 806</span> </div> <div class="line"><a name="l00807"></a><span class="lineno"> 807</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#abc774db9cb9ee113a4050e5b8b310a7d">blockCipherContextSetCTR</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, <span class="keyword">const</span> <a class="code" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00809"></a><span class="lineno"> 809</span> </div> <div class="line"><a name="l00810"></a><span class="lineno"> 810</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00811"></a><span class="lineno"> 811</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#acdbacb548303571540b2d9dccb884e26">blockCipherContextFree</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*);</div> <div class="line"><a name="l00812"></a><span class="lineno"> 812</span> </div> <div class="line"><a name="l00813"></a><span class="lineno"> 813</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00814"></a><span class="lineno"> 814</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ae699e023fd254dc115d9eda60c37abdf">blockCipherContextECB</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, uint32_t*, <span class="keyword">const</span> uint32_t*, <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00815"></a><span class="lineno"> 815</span> </div> <div class="line"><a name="l00816"></a><span class="lineno"> 816</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00817"></a><span class="lineno"> 817</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#ad525360e43b8f30a161a4e50abbd12bf">blockCipherContextCBC</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, uint32_t*, <span class="keyword">const</span> uint32_t*, <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00818"></a><span class="lineno"> 818</span> </div> <div class="line"><a name="l00819"></a><span class="lineno"> 819</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00820"></a><span class="lineno"> 820</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#a1f9396b85ecb7daa8ca08286db5dfc0e">blockCipherContextCTR</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, uint32_t*, <span class="keyword">const</span> uint32_t*, <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00821"></a><span class="lineno"> 821</span> </div> <div class="line"><a name="l00822"></a><span class="lineno"> 822</span> <a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div> <div class="line"><a name="l00823"></a><span class="lineno"> 823</span> <span class="keywordtype">int</span> <a class="code" href="beecrypt_8h.html#aa5e67eeb1b6c84e2023995ca65ff49df">blockCipherContextValidKeylen</a>(<a class="code" href="structblockCipherContext.html">blockCipherContext</a>*, <span class="keywordtype">size_t</span>);</div> <div class="line"><a name="l00824"></a><span class="lineno"> 824</span> </div> <div class="line"><a name="l00825"></a><span class="lineno"> 825</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00826"></a><span class="lineno"> 826</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00827"></a><span class="lineno"> 827</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00828"></a><span class="lineno"> 828</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00829"></a><span class="lineno"> 829</span> <span class="preprocessor">#endif</span></div> <div class="ttc" id="structentropySource_html_a5a323b46cb25d2278028b0cdb0b8d4c1"><div class="ttname"><a href="structentropySource.html#a5a323b46cb25d2278028b0cdb0b8d4c1">entropySource::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">The entropy source&#39;s name. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:61</div></div> <div class="ttc" id="beecrypt_8h_html_a240f02f2647968752d3f4e52f88f54bc"><div class="ttname"><a href="beecrypt_8h.html#a240f02f2647968752d3f4e52f88f54bc">keyedHashFunctionUpdate</a></div><div class="ttdeci">int(* keyedHashFunctionUpdate)(keyedHashFunctionParam *, const byte *, size_t)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:418</div></div> <div class="ttc" id="structblockCipher_html_a6fdc2e832bdc281af527640ddb2cb639"><div class="ttname"><a href="structblockCipher.html#a6fdc2e832bdc281af527640ddb2cb639">blockCipher::cbc</a></div><div class="ttdeci">const blockCipherMode cbc</div><div class="ttdoc">The cipher&#39;s CBC functions. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:701</div></div> <div class="ttc" id="beecrypt_8h_html_acdbacb548303571540b2d9dccb884e26"><div class="ttname"><a href="beecrypt_8h.html#acdbacb548303571540b2d9dccb884e26">blockCipherContextFree</a></div><div class="ttdeci">int blockCipherContextFree(blockCipherContext *)</div></div> <div class="ttc" id="structhashFunction_html_ad34fdbf8f2f7a2ffc66449dc0ff47593"><div class="ttname"><a href="structhashFunction.html#ad34fdbf8f2f7a2ffc66449dc0ff47593">hashFunction::paramsize</a></div><div class="ttdeci">const size_t paramsize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:307</div></div> <div class="ttc" id="beecrypt_8h_html_aa6a06eb76b04e62edb36340f602b6fff"><div class="ttname"><a href="beecrypt_8h.html#aa6a06eb76b04e62edb36340f602b6fff">hashFunctionDefault</a></div><div class="ttdeci">const hashFunction * hashFunctionDefault(void)</div></div> <div class="ttc" id="structblockCipher_html_aedabefbac9018470145c344b463669de"><div class="ttname"><a href="structblockCipher.html#aedabefbac9018470145c344b463669de">blockCipher::setctr</a></div><div class="ttdeci">const blockCipherSetCTR setctr</div><div class="ttdoc">Pointer to the cipher&#39;s ctr setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:685</div></div> <div class="ttc" id="beecrypt_8h_html_ad2e5b19992c14145ff9d01314d80942b"><div class="ttname"><a href="beecrypt_8h.html#ad2e5b19992c14145ff9d01314d80942b">randomGeneratorNext</a></div><div class="ttdeci">int(* randomGeneratorNext)(randomGeneratorParam *, byte *, size_t)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:137</div></div> <div class="ttc" id="structkeyedHashFunctionContext_html_aae6d17b7f643c66b147a4b24f77f2ce1"><div class="ttname"><a href="structkeyedHashFunctionContext.html#aae6d17b7f643c66b147a4b24f77f2ce1">keyedHashFunctionContext::param</a></div><div class="ttdeci">keyedHashFunctionParam * param</div><div class="ttdef"><b>Definition:</b> beecrypt.h:500</div></div> <div class="ttc" id="api_8h_html"><div class="ttname"><a href="api_8h.html">api.h</a></div><div class="ttdoc">BeeCrypt API, portability headers. </div></div> <div class="ttc" id="structblockCipherContext_html_a4eb34e526b36292e8947d641cc31f434"><div class="ttname"><a href="structblockCipherContext.html#a4eb34e526b36292e8947d641cc31f434">blockCipherContext::op</a></div><div class="ttdeci">cipherOperation op</div><div class="ttdef"><b>Definition:</b> beecrypt.h:775</div></div> <div class="ttc" id="beecrypt_8h_html_aa5e67eeb1b6c84e2023995ca65ff49df"><div class="ttname"><a href="beecrypt_8h.html#aa5e67eeb1b6c84e2023995ca65ff49df">blockCipherContextValidKeylen</a></div><div class="ttdeci">int blockCipherContextValidKeylen(blockCipherContext *, size_t)</div></div> <div class="ttc" id="beecrypt_8h_html_a0bf1ac8c6b4428ee70b750a6c9b02f69"><div class="ttname"><a href="beecrypt_8h.html#a0bf1ac8c6b4428ee70b750a6c9b02f69">hashFunctionContextFree</a></div><div class="ttdeci">int hashFunctionContextFree(hashFunctionContext *)</div></div> <div class="ttc" id="beecrypt_8h_html_ae699e023fd254dc115d9eda60c37abdf"><div class="ttname"><a href="beecrypt_8h.html#ae699e023fd254dc115d9eda60c37abdf">blockCipherContextECB</a></div><div class="ttdeci">int blockCipherContextECB(blockCipherContext *, uint32_t *, const uint32_t *, int)</div></div> <div class="ttc" id="structrandomGenerator_html"><div class="ttname"><a href="structrandomGenerator.html">randomGenerator</a></div><div class="ttdoc">This struct holds information and pointers to code specific to each pseudo-random number generator...</div><div class="ttdef"><b>Definition:</b> beecrypt.h:161</div></div> <div class="ttc" id="beecrypt_8h_html_ac7ee3f3cdb341a59804a859bc2d2a1c5"><div class="ttname"><a href="beecrypt_8h.html#ac7ee3f3cdb341a59804a859bc2d2a1c5">keyedHashFunctionContextUpdateMP</a></div><div class="ttdeci">int keyedHashFunctionContextUpdateMP(keyedHashFunctionContext *, const mpnumber *)</div></div> <div class="ttc" id="beecrypt_8h_html_a77909d98df4c0279f8484c7cd04fbed7"><div class="ttname"><a href="beecrypt_8h.html#a77909d98df4c0279f8484c7cd04fbed7">keyedHashFunctionContextUpdateMC</a></div><div class="ttdeci">int keyedHashFunctionContextUpdateMC(keyedHashFunctionContext *, const memchunk *)</div></div> <div class="ttc" id="group__BC__m_html_gacc003baa6ffa4b315283282b19f081ec"><div class="ttname"><a href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a></div><div class="ttdeci">int(* blockCipherModcrypt)(blockCipherParam *, uint32_t *, const uint32_t *, unsigned int)</div><div class="ttdoc">Prototype for a encryption or decryption function which operates on multiple blocks in a certain mode...</div><div class="ttdef"><b>Definition:</b> beecrypt.h:621</div></div> <div class="ttc" id="beecrypt_8h_html_af0fe12db4e6babe65495bd6dfee59200"><div class="ttname"><a href="beecrypt_8h.html#af0fe12db4e6babe65495bd6dfee59200">randomGeneratorContextInit</a></div><div class="ttdeci">int randomGeneratorContextInit(randomGeneratorContext *, const randomGenerator *)</div></div> <div class="ttc" id="structblockCipher_html"><div class="ttname"><a href="structblockCipher.html">blockCipher</a></div><div class="ttdoc">Holds information and pointers to code specific to each cipher. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:644</div></div> <div class="ttc" id="structblockCipherRaw_html_a551982eaaff70ffd60e0e873f22bfa92"><div class="ttname"><a href="structblockCipherRaw.html#a551982eaaff70ffd60e0e873f22bfa92">blockCipherRaw::decrypt</a></div><div class="ttdeci">const blockCipherRawcrypt decrypt</div><div class="ttdef"><b>Definition:</b> beecrypt.h:628</div></div> <div class="ttc" id="beecrypt_8h_html_a2b746f73795f8fc8248fe53f360489b5"><div class="ttname"><a href="beecrypt_8h.html#a2b746f73795f8fc8248fe53f360489b5">hashFunctionContextDigestMP</a></div><div class="ttdeci">int hashFunctionContextDigestMP(hashFunctionContext *, mpnumber *)</div></div> <div class="ttc" id="structblockCipherContext_html"><div class="ttname"><a href="structblockCipherContext.html">blockCipherContext</a></div><div class="ttdoc">Holds a pointer to a blockcipher as well as its parameters. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:760</div></div> <div class="ttc" id="structhashFunction_html_a51569795a0d4a519305d6c1263673ad2"><div class="ttname"><a href="structhashFunction.html#a51569795a0d4a519305d6c1263673ad2">hashFunction::digest</a></div><div class="ttdeci">const hashFunctionDigest digest</div><div class="ttdef"><b>Definition:</b> beecrypt.h:312</div></div> <div class="ttc" id="beecrypt_8h_html_a88615d56cb64acbc1488250ddcd612a8"><div class="ttname"><a href="beecrypt_8h.html#a88615d56cb64acbc1488250ddcd612a8">keyedHashFunctionContextUpdate</a></div><div class="ttdeci">int keyedHashFunctionContextUpdate(keyedHashFunctionContext *, const byte *, size_t)</div></div> <div class="ttc" id="structrandomGeneratorContext_html"><div class="ttname"><a href="structrandomGeneratorContext.html">randomGeneratorContext</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:235</div></div> <div class="ttc" id="beecrypt_8h_html_a4a298808ee4ff5970f0bb66ed535ec21"><div class="ttname"><a href="beecrypt_8h.html#a4a298808ee4ff5970f0bb66ed535ec21">entropyGatherNext</a></div><div class="ttdeci">int entropyGatherNext(byte *, size_t)</div><div class="ttdoc">This function gathers size bytes of entropy into data. </div></div> <div class="ttc" id="beecrypt_8h_html_aaffe227dcd8be091603342767d7d1b79"><div class="ttname"><a href="beecrypt_8h.html#aaffe227dcd8be091603342767d7d1b79">entropySourceFind</a></div><div class="ttdeci">const entropySource * entropySourceFind(const char *name)</div><div class="ttdoc">This function returns the entropy source specified by the given name. </div></div> <div class="ttc" id="structkeyedHashFunction_html"><div class="ttname"><a href="structkeyedHashFunction.html">keyedHashFunction</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:436</div></div> <div class="ttc" id="beecrypt_8h_html_a4d82f6868b6d41e1d387023d4e5d73ce"><div class="ttname"><a href="beecrypt_8h.html#a4d82f6868b6d41e1d387023d4e5d73ce">randomGeneratorSetup</a></div><div class="ttdeci">int(* randomGeneratorSetup)(randomGeneratorParam *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:135</div></div> <div class="ttc" id="beecrypt_8h_html_a3ae8c4a00dc15ed49ebf53cdde9f0654"><div class="ttname"><a href="beecrypt_8h.html#a3ae8c4a00dc15ed49ebf53cdde9f0654">keyedHashFunctionDefault</a></div><div class="ttdeci">const keyedHashFunction * keyedHashFunctionDefault(void)</div></div> <div class="ttc" id="structhashFunctionContext_html_a0171fc232d5891db8cd9c9e35429b43c"><div class="ttname"><a href="structhashFunctionContext.html#a0171fc232d5891db8cd9c9e35429b43c">hashFunctionContext::algo</a></div><div class="ttdeci">const hashFunction * algo</div><div class="ttdef"><b>Definition:</b> beecrypt.h:360</div></div> <div class="ttc" id="structblockCipher_html_aada7de9cfffbc798465d99a63b4981c6"><div class="ttname"><a href="structblockCipher.html#aada7de9cfffbc798465d99a63b4981c6">blockCipher::setiv</a></div><div class="ttdeci">const blockCipherSetIV setiv</div><div class="ttdoc">Pointer to the cipher&#39;s initialization vector setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:681</div></div> <div class="ttc" id="structblockCipherContext_html_a82660a51f5222deb406b856168862fc7"><div class="ttname"><a href="structblockCipherContext.html#a82660a51f5222deb406b856168862fc7">blockCipherContext::param</a></div><div class="ttdeci">blockCipherParam * param</div><div class="ttdoc">Pointer to the parameters used by algo. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:772</div></div> <div class="ttc" id="structmemchunk_html"><div class="ttname"><a href="structmemchunk.html">memchunk</a></div><div class="ttdef"><b>Definition:</b> memchunk.h:28</div></div> <div class="ttc" id="beecrypt_8h_html_a862f28c4090c61e27ee3a51c81bbb58c"><div class="ttname"><a href="beecrypt_8h.html#a862f28c4090c61e27ee3a51c81bbb58c">hashFunctionReset</a></div><div class="ttdeci">int(* hashFunctionReset)(hashFunctionParam *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:286</div></div> <div class="ttc" id="structblockCipherMode_html"><div class="ttname"><a href="structblockCipherMode.html">blockCipherMode</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:631</div></div> <div class="ttc" id="beecrypt_8h_html_ada43c2b83992195fbc6434412bbd6d26"><div class="ttname"><a href="beecrypt_8h.html#ada43c2b83992195fbc6434412bbd6d26">entropySourceGet</a></div><div class="ttdeci">const entropySource * entropySourceGet(int n)</div><div class="ttdoc">This function returns the n -th entropy source implemented by the library. </div></div> <div class="ttc" id="group__BC__m_html_ga40aeffa20f977393fbf10378ef466c25"><div class="ttname"><a href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25">blockCipherSetIV</a></div><div class="ttdeci">int(* blockCipherSetIV)(blockCipherParam *, const byte *)</div><div class="ttdoc">Prototype definition for an initialization vector setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:584</div></div> <div class="ttc" id="beecrypt_8h_html_a76368dcfe764752e23c7505fb9b7cbc2"><div class="ttname"><a href="beecrypt_8h.html#a76368dcfe764752e23c7505fb9b7cbc2">keyedHashFunctionReset</a></div><div class="ttdeci">int(* keyedHashFunctionReset)(keyedHashFunctionParam *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:417</div></div> <div class="ttc" id="beecrypt_8h_html_ae58dba3450e389bd57fa9662246c615c"><div class="ttname"><a href="beecrypt_8h.html#ae58dba3450e389bd57fa9662246c615c">keyedHashFunctionContextFree</a></div><div class="ttdeci">int keyedHashFunctionContextFree(keyedHashFunctionContext *)</div></div> <div class="ttc" id="beecrypt_8h_html_a3e624844316c5c6f0231a0edcf9b0628"><div class="ttname"><a href="beecrypt_8h.html#a3e624844316c5c6f0231a0edcf9b0628">blockCipherFind</a></div><div class="ttdeci">const blockCipher * blockCipherFind(const char *)</div><div class="ttdoc">This function returns the blockcipher specified by the given name. </div></div> <div class="ttc" id="beecrypt_8h_html_a6aee4a637885b2b1a9a4927e842af6c9"><div class="ttname"><a href="beecrypt_8h.html#a6aee4a637885b2b1a9a4927e842af6c9">randomGeneratorContextFree</a></div><div class="ttdeci">int randomGeneratorContextFree(randomGeneratorContext *)</div></div> <div class="ttc" id="structkeyedHashFunction_html_a0c9907ba5aad681f7a539ca293c8b776"><div class="ttname"><a href="structkeyedHashFunction.html#a0c9907ba5aad681f7a539ca293c8b776">keyedHashFunction::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> beecrypt.h:441</div></div> <div class="ttc" id="beecrypt_8h_html_abef2dc2a954271d06eb908d9cb8f612f"><div class="ttname"><a href="beecrypt_8h.html#abef2dc2a954271d06eb908d9cb8f612f">keyedHashFunctionDigest</a></div><div class="ttdeci">int(* keyedHashFunctionDigest)(keyedHashFunctionParam *, byte *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:419</div></div> <div class="ttc" id="structhashFunctionContext_html"><div class="ttname"><a href="structhashFunctionContext.html">hashFunctionContext</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:355</div></div> <div class="ttc" id="structrandomGeneratorContext_html_afd4214bc30c8782641fdd2f22e14b823"><div class="ttname"><a href="structrandomGeneratorContext.html#afd4214bc30c8782641fdd2f22e14b823">randomGeneratorContext::rng</a></div><div class="ttdeci">const randomGenerator * rng</div><div class="ttdef"><b>Definition:</b> beecrypt.h:240</div></div> <div class="ttc" id="structkeyedHashFunctionContext_html_a574d8c4b7fdb26e592f7a83f1f1a7d9c"><div class="ttname"><a href="structkeyedHashFunctionContext.html#a574d8c4b7fdb26e592f7a83f1f1a7d9c">keyedHashFunctionContext::algo</a></div><div class="ttdeci">const keyedHashFunction * algo</div><div class="ttdef"><b>Definition:</b> beecrypt.h:499</div></div> <div class="ttc" id="structblockCipherRaw_html"><div class="ttname"><a href="structblockCipherRaw.html">blockCipherRaw</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:625</div></div> <div class="ttc" id="beecrypt_8h_html_ad525360e43b8f30a161a4e50abbd12bf"><div class="ttname"><a href="beecrypt_8h.html#ad525360e43b8f30a161a4e50abbd12bf">blockCipherContextCBC</a></div><div class="ttdeci">int blockCipherContextCBC(blockCipherContext *, uint32_t *, const uint32_t *, int)</div></div> <div class="ttc" id="structblockCipher_html_a26c65493883b6ae3437d31c5ce433245"><div class="ttname"><a href="structblockCipher.html#a26c65493883b6ae3437d31c5ce433245">blockCipher::ctr</a></div><div class="ttdeci">const blockCipherMode ctr</div><div class="ttdoc">The cipher&#39;s CTR functions. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:705</div></div> <div class="ttc" id="structentropySource_html_a6a125f3ed8026d8b7aedb49135d9c169"><div class="ttname"><a href="structentropySource.html#a6a125f3ed8026d8b7aedb49135d9c169">entropySource::next</a></div><div class="ttdeci">const entropyNext next</div><div class="ttdoc">Points to the function which produces the entropy. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:65</div></div> <div class="ttc" id="structkeyedHashFunction_html_a9cdf44139400f0d3ad24fb275664318a"><div class="ttname"><a href="structkeyedHashFunction.html#a9cdf44139400f0d3ad24fb275664318a">keyedHashFunction::keybitsmin</a></div><div class="ttdeci">const size_t keybitsmin</div><div class="ttdef"><b>Definition:</b> beecrypt.h:445</div></div> <div class="ttc" id="beecrypt_8h_html_gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96"><div class="ttname"><a href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96">ENCRYPT</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:559</div></div> <div class="ttc" id="structblockCipherMode_html_acb6ff8380170626b013916ab4231c3b8"><div class="ttname"><a href="structblockCipherMode.html#acb6ff8380170626b013916ab4231c3b8">blockCipherMode::decrypt</a></div><div class="ttdeci">const blockCipherModcrypt decrypt</div><div class="ttdef"><b>Definition:</b> beecrypt.h:634</div></div> <div class="ttc" id="structrandomGenerator_html_afa9abf10773ffd14f884d41554be393c"><div class="ttname"><a href="structrandomGenerator.html#afa9abf10773ffd14f884d41554be393c">randomGenerator::cleanup</a></div><div class="ttdeci">const randomGeneratorCleanup cleanup</div><div class="ttdef"><b>Definition:</b> beecrypt.h:191</div></div> <div class="ttc" id="beecrypt_8h_html_a5b643b26dd94e101dc987f97cb71b9e8"><div class="ttname"><a href="beecrypt_8h.html#a5b643b26dd94e101dc987f97cb71b9e8">hashFunctionContextDigest</a></div><div class="ttdeci">int hashFunctionContextDigest(hashFunctionContext *, byte *)</div></div> <div class="ttc" id="structkeyedHashFunction_html_a87afb5dfbd84c2db409b1a1416de4110"><div class="ttname"><a href="structkeyedHashFunction.html#a87afb5dfbd84c2db409b1a1416de4110">keyedHashFunction::reset</a></div><div class="ttdeci">const keyedHashFunctionReset reset</div><div class="ttdef"><b>Definition:</b> beecrypt.h:449</div></div> <div class="ttc" id="api_8h_html_ab8ef12fab634c171394422d0ee8baf94"><div class="ttname"><a href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a></div><div class="ttdeci">uint8_t byte</div><div class="ttdef"><b>Definition:</b> api.h:72</div></div> <div class="ttc" id="structblockCipher_html_a66034965bc9ae136e6dc224c10b84e71"><div class="ttname"><a href="structblockCipher.html#a66034965bc9ae136e6dc224c10b84e71">blockCipher::raw</a></div><div class="ttdeci">const blockCipherRaw raw</div><div class="ttdoc">The cipher&#39;s raw functions. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:693</div></div> <div class="ttc" id="structkeyedHashFunctionContext_html"><div class="ttname"><a href="structkeyedHashFunctionContext.html">keyedHashFunctionContext</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:494</div></div> <div class="ttc" id="structblockCipher_html_acd180c9ad40ef38241a66607ecdb19c7"><div class="ttname"><a href="structblockCipher.html#acd180c9ad40ef38241a66607ecdb19c7">blockCipher::getfb</a></div><div class="ttdeci">const blockCipherFeedback getfb</div><div class="ttdoc">Pointer to the cipher&#39;s feedback-returning function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:689</div></div> <div class="ttc" id="beecrypt_8h_html_a6f67228e64a6c6b6005fe85f7234a397"><div class="ttname"><a href="beecrypt_8h.html#a6f67228e64a6c6b6005fe85f7234a397">keyedHashFunctionSetup</a></div><div class="ttdeci">int(* keyedHashFunctionSetup)(keyedHashFunctionParam *, const byte *, size_t)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:416</div></div> <div class="ttc" id="structhashFunction_html_a7bdc898a8445ccb3f9e1ac74316b5666"><div class="ttname"><a href="structhashFunction.html#a7bdc898a8445ccb3f9e1ac74316b5666">hashFunction::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> beecrypt.h:306</div></div> <div class="ttc" id="structrandomGenerator_html_adc5a15772ae7b4411722aa1ecac05690"><div class="ttname"><a href="structrandomGenerator.html#adc5a15772ae7b4411722aa1ecac05690">randomGenerator::paramsize</a></div><div class="ttdeci">const size_t paramsize</div><div class="ttdoc">The size of the random generator&#39;s parameters. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:175</div></div> <div class="ttc" id="group__HASH__m_html_ga94edf1e4abdf78acd04e54ab389f9387"><div class="ttname"><a href="group__HASH__m.html#ga94edf1e4abdf78acd04e54ab389f9387">hashFunctionParam</a></div><div class="ttdeci">void hashFunctionParam</div><div class="ttdef"><b>Definition:</b> beecrypt.h:284</div></div> <div class="ttc" id="structrandomGeneratorContext_html_a1db92eaad52cfc38ecf96beac34ee360"><div class="ttname"><a href="structrandomGeneratorContext.html#a1db92eaad52cfc38ecf96beac34ee360">randomGeneratorContext::param</a></div><div class="ttdeci">randomGeneratorParam * param</div><div class="ttdef"><b>Definition:</b> beecrypt.h:241</div></div> <div class="ttc" id="beecrypt_8h_html_a4c4c2de90041e552da1c29e3bbe96e7a"><div class="ttname"><a href="beecrypt_8h.html#a4c4c2de90041e552da1c29e3bbe96e7a">blockCipherDefault</a></div><div class="ttdeci">const blockCipher * blockCipherDefault(void)</div><div class="ttdoc">This functions returns the default blockcipher; the default value can be specified by setting environ...</div></div> <div class="ttc" id="beecrypt_8h_html_a80018980668ed9121a0d9b843994a1b4"><div class="ttname"><a href="beecrypt_8h.html#a80018980668ed9121a0d9b843994a1b4">keyedHashFunctionContextSetup</a></div><div class="ttdeci">int keyedHashFunctionContextSetup(keyedHashFunctionContext *, const byte *, size_t)</div></div> <div class="ttc" id="beecrypt_8h_html_a8d1319ccc33a123684c53f94a1a81bb1"><div class="ttname"><a href="beecrypt_8h.html#a8d1319ccc33a123684c53f94a1a81bb1">randomGeneratorSeed</a></div><div class="ttdeci">int(* randomGeneratorSeed)(randomGeneratorParam *, const byte *, size_t)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:136</div></div> <div class="ttc" id="structkeyedHashFunction_html_a4b51318bf29de33a80be82faeb3a855a"><div class="ttname"><a href="structkeyedHashFunction.html#a4b51318bf29de33a80be82faeb3a855a">keyedHashFunction::digest</a></div><div class="ttdeci">const keyedHashFunctionDigest digest</div><div class="ttdef"><b>Definition:</b> beecrypt.h:451</div></div> <div class="ttc" id="structrandomGenerator_html_aa4837e4c4416abb19fcafe56c1b040c4"><div class="ttname"><a href="structrandomGenerator.html#aa4837e4c4416abb19fcafe56c1b040c4">randomGenerator::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">The random generator&#39;s name. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:169</div></div> <div class="ttc" id="beecrypt_8h_html_afb941723fc8e79495a6e8f77639ce29a"><div class="ttname"><a href="beecrypt_8h.html#afb941723fc8e79495a6e8f77639ce29a">entropySourceDefault</a></div><div class="ttdeci">const entropySource * entropySourceDefault(void)</div><div class="ttdoc">This functions returns the default entropy source; the default value can be specified by setting envi...</div></div> <div class="ttc" id="structblockCipher_html_a103ff53ae70c8b181770b5605d23ab80"><div class="ttname"><a href="structblockCipher.html#a103ff53ae70c8b181770b5605d23ab80">blockCipher::setup</a></div><div class="ttdeci">const blockCipherSetup setup</div><div class="ttdoc">Pointer to the cipher&#39;s setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:677</div></div> <div class="ttc" id="structrandomGenerator_html_aa89014317855bac8ccf05e78858a5274"><div class="ttname"><a href="structrandomGenerator.html#aa89014317855bac8ccf05e78858a5274">randomGenerator::next</a></div><div class="ttdeci">const randomGeneratorNext next</div><div class="ttdef"><b>Definition:</b> beecrypt.h:187</div></div> <div class="ttc" id="beecrypt_8h_html_gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11"><div class="ttname"><a href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11">DECRYPT</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:560</div></div> <div class="ttc" id="mpnumber_8h_html"><div class="ttname"><a href="mpnumber_8h.html">mpnumber.h</a></div><div class="ttdoc">Multi-precision numbers, headers. </div></div> <div class="ttc" id="structblockCipher_html_ac1f9c47f7b594006a4d66955dc81bfd9"><div class="ttname"><a href="structblockCipher.html#ac1f9c47f7b594006a4d66955dc81bfd9">blockCipher::ecb</a></div><div class="ttdeci">const blockCipherMode ecb</div><div class="ttdoc">The cipher&#39;s ECB functions. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:697</div></div> <div class="ttc" id="beecrypt_8h_html_a0880b04490ee9c7440e48c7156fc4f23"><div class="ttname"><a href="beecrypt_8h.html#a0880b04490ee9c7440e48c7156fc4f23">hashFunctionDigest</a></div><div class="ttdeci">int(* hashFunctionDigest)(hashFunctionParam *, byte *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:288</div></div> <div class="ttc" id="beecrypt_8h_html_ae0cdb06fca4d61994ce5f3f7f108e19e"><div class="ttname"><a href="beecrypt_8h.html#ae0cdb06fca4d61994ce5f3f7f108e19e">keyedHashFunctionContextDigestMP</a></div><div class="ttdeci">int keyedHashFunctionContextDigestMP(keyedHashFunctionContext *, mpnumber *)</div></div> <div class="ttc" id="beecrypt_8h_html_af0bcba2049fded9263462e08e48e82c1"><div class="ttname"><a href="beecrypt_8h.html#af0bcba2049fded9263462e08e48e82c1">blockCipherContextInit</a></div><div class="ttdeci">int blockCipherContextInit(blockCipherContext *, const blockCipher *)</div></div> <div class="ttc" id="beecrypt_8h_html_a80b63b9d3fc63f334d18d1a37b8c0837"><div class="ttname"><a href="beecrypt_8h.html#a80b63b9d3fc63f334d18d1a37b8c0837">hashFunctionCount</a></div><div class="ttdeci">int hashFunctionCount(void)</div></div> <div class="ttc" id="beecrypt_8h_html_a1f9396b85ecb7daa8ca08286db5dfc0e"><div class="ttname"><a href="beecrypt_8h.html#a1f9396b85ecb7daa8ca08286db5dfc0e">blockCipherContextCTR</a></div><div class="ttdeci">int blockCipherContextCTR(blockCipherContext *, uint32_t *, const uint32_t *, int)</div></div> <div class="ttc" id="beecrypt_8h_html_aeeaa29f26954bdf866bd22cf097d4648"><div class="ttname"><a href="beecrypt_8h.html#aeeaa29f26954bdf866bd22cf097d4648">randomGeneratorCleanup</a></div><div class="ttdeci">int(* randomGeneratorCleanup)(randomGeneratorParam *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:138</div></div> <div class="ttc" id="beecrypt_8h_html_acdfc8cf976442a8787fc386fd4482643"><div class="ttname"><a href="beecrypt_8h.html#acdfc8cf976442a8787fc386fd4482643">keyedHashFunctionCount</a></div><div class="ttdeci">int keyedHashFunctionCount(void)</div></div> <div class="ttc" id="structkeyedHashFunction_html_ab26144257162ffba627ab2408453afd8"><div class="ttname"><a href="structkeyedHashFunction.html#ab26144257162ffba627ab2408453afd8">keyedHashFunction::setup</a></div><div class="ttdeci">const keyedHashFunctionSetup setup</div><div class="ttdef"><b>Definition:</b> beecrypt.h:448</div></div> <div class="ttc" id="beecrypt_8h_html_afa41fb029463ab0bd409296b2fa891f6"><div class="ttname"><a href="beecrypt_8h.html#afa41fb029463ab0bd409296b2fa891f6">hashFunctionContextUpdateMC</a></div><div class="ttdeci">int hashFunctionContextUpdateMC(hashFunctionContext *, const memchunk *)</div></div> <div class="ttc" id="beecrypt_8h_html_a2e630fc8a21080fa4c67b18490f28a33"><div class="ttname"><a href="beecrypt_8h.html#a2e630fc8a21080fa4c67b18490f28a33">entropySourceCount</a></div><div class="ttdeci">int entropySourceCount(void)</div><div class="ttdoc">This function returns the number of entropy sources implemented by the library. </div></div> <div class="ttc" id="beecrypt_8h_html_aadf3f9eeeb2470234f81b01681c65407"><div class="ttname"><a href="beecrypt_8h.html#aadf3f9eeeb2470234f81b01681c65407">hashFunctionContextInit</a></div><div class="ttdeci">int hashFunctionContextInit(hashFunctionContext *, const hashFunction *)</div></div> <div class="ttc" id="structblockCipherContext_html_ad964fd13d2d0a2256a8c9b325a9a0da5"><div class="ttname"><a href="structblockCipherContext.html#ad964fd13d2d0a2256a8c9b325a9a0da5">blockCipherContext::algo</a></div><div class="ttdeci">const blockCipher * algo</div><div class="ttdoc">Pointer to a blockCipher. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:768</div></div> <div class="ttc" id="structrandomGenerator_html_af9bdd502762ce093754fb3376d1a0d3c"><div class="ttname"><a href="structrandomGenerator.html#af9bdd502762ce093754fb3376d1a0d3c">randomGenerator::seed</a></div><div class="ttdeci">const randomGeneratorSeed seed</div><div class="ttdoc">Points to the seeding function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:183</div></div> <div class="ttc" id="structhashFunctionContext_html_ab9c03612efb3d32053f3669297493f75"><div class="ttname"><a href="structhashFunctionContext.html#ab9c03612efb3d32053f3669297493f75">hashFunctionContext::param</a></div><div class="ttdeci">hashFunctionParam * param</div><div class="ttdef"><b>Definition:</b> beecrypt.h:361</div></div> <div class="ttc" id="beecrypt_8h_html_a1a562d253fc6d47cbf46bb39a31756de"><div class="ttname"><a href="beecrypt_8h.html#a1a562d253fc6d47cbf46bb39a31756de">keyedHashFunctionGet</a></div><div class="ttdeci">const keyedHashFunction * keyedHashFunctionGet(int)</div></div> <div class="ttc" id="group__BC__m_html_gaa6f6ba122e489fd3c3923c83cb55dae0"><div class="ttname"><a href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a></div><div class="ttdeci">void blockCipherParam</div><div class="ttdoc">Placeholder type definition for blockcipher parameters. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:568</div></div> <div class="ttc" id="structkeyedHashFunction_html_acdaf9541f5cdefac32a2e67121e01dde"><div class="ttname"><a href="structkeyedHashFunction.html#acdaf9541f5cdefac32a2e67121e01dde">keyedHashFunction::keybitsmax</a></div><div class="ttdeci">const size_t keybitsmax</div><div class="ttdef"><b>Definition:</b> beecrypt.h:446</div></div> <div class="ttc" id="beecrypt_8h_html_aebae300c3551a15e114b34b1ea03a7cc"><div class="ttname"><a href="beecrypt_8h.html#aebae300c3551a15e114b34b1ea03a7cc">keyedHashFunctionContextDigest</a></div><div class="ttdeci">int keyedHashFunctionContextDigest(keyedHashFunctionContext *, byte *)</div></div> <div class="ttc" id="structblockCipherMode_html_af8f75b18ff2e45136fecbbe9d14d5981"><div class="ttname"><a href="structblockCipherMode.html#af8f75b18ff2e45136fecbbe9d14d5981">blockCipherMode::encrypt</a></div><div class="ttdeci">const blockCipherModcrypt encrypt</div><div class="ttdef"><b>Definition:</b> beecrypt.h:633</div></div> <div class="ttc" id="beecrypt_8h_html_afe58d7195eaaf3d81cb92a5928de3fc3"><div class="ttname"><a href="beecrypt_8h.html#afe58d7195eaaf3d81cb92a5928de3fc3">hashFunctionContextUpdate</a></div><div class="ttdeci">int hashFunctionContextUpdate(hashFunctionContext *, const byte *, size_t)</div></div> <div class="ttc" id="beecrypt_8h_html_a75ec034f594a52065782a5c0b39d39d5"><div class="ttname"><a href="beecrypt_8h.html#a75ec034f594a52065782a5c0b39d39d5">randomGeneratorDefault</a></div><div class="ttdeci">const randomGenerator * randomGeneratorDefault(void)</div></div> <div class="ttc" id="beecrypt_8h_html_ab4124cb62091bdc935e7efa3164dc78c"><div class="ttname"><a href="beecrypt_8h.html#ab4124cb62091bdc935e7efa3164dc78c">keyedHashFunctionContextReset</a></div><div class="ttdeci">int keyedHashFunctionContextReset(keyedHashFunctionContext *)</div></div> <div class="ttc" id="memchunk_8h_html"><div class="ttname"><a href="memchunk_8h.html">memchunk.h</a></div></div> <div class="ttc" id="structkeyedHashFunction_html_a2ed7d4490e69e9acefc4e9d9e0a4be08"><div class="ttname"><a href="structkeyedHashFunction.html#a2ed7d4490e69e9acefc4e9d9e0a4be08">keyedHashFunction::keybitsinc</a></div><div class="ttdeci">const size_t keybitsinc</div><div class="ttdef"><b>Definition:</b> beecrypt.h:447</div></div> <div class="ttc" id="structblockCipher_html_a6c9f539d9632b00c9b98228539254833"><div class="ttname"><a href="structblockCipher.html#a6c9f539d9632b00c9b98228539254833">blockCipher::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">The blockcipher&#39;s name. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:652</div></div> <div class="ttc" id="beecrypt_8h_html_a8effb48ec7132ac6d5872e8887e51ffc"><div class="ttname"><a href="beecrypt_8h.html#a8effb48ec7132ac6d5872e8887e51ffc">blockCipherContextSetIV</a></div><div class="ttdeci">int blockCipherContextSetIV(blockCipherContext *, const byte *)</div></div> <div class="ttc" id="api_8h_html_a4f699d64328623c51b22f3b3f1ff4150"><div class="ttname"><a href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div><div class="ttdeci">#define BEECRYPTAPI</div><div class="ttdef"><b>Definition:</b> api.h:52</div></div> <div class="ttc" id="group__BC__m_html_ga49ec3da318c2c3ab4464c8dbb38617c5"><div class="ttname"><a href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a></div><div class="ttdeci">int(* blockCipherRawcrypt)(blockCipherParam *, uint32_t *, const uint32_t *)</div><div class="ttdoc">Prototype for a raw encryption or decryption function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:608</div></div> <div class="ttc" id="structkeyedHashFunction_html_a16ca496247b9ae5bcd60db1dae236e21"><div class="ttname"><a href="structkeyedHashFunction.html#a16ca496247b9ae5bcd60db1dae236e21">keyedHashFunction::digestsize</a></div><div class="ttdeci">const size_t digestsize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:444</div></div> <div class="ttc" id="structblockCipher_html_ad4251f30dce3bb56c6d6d4af5effce21"><div class="ttname"><a href="structblockCipher.html#ad4251f30dce3bb56c6d6d4af5effce21">blockCipher::keybitsinc</a></div><div class="ttdeci">const size_t keybitsinc</div><div class="ttdoc">The allowed increment in key bits between min and max. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:673</div></div> <div class="ttc" id="structkeyedHashFunction_html_af12982a1b339e3647b2f301be4c70e54"><div class="ttname"><a href="structkeyedHashFunction.html#af12982a1b339e3647b2f301be4c70e54">keyedHashFunction::blocksize</a></div><div class="ttdeci">const size_t blocksize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:443</div></div> <div class="ttc" id="beecrypt_8h_html_a6de16f2df538d071c357144bd119edb6"><div class="ttname"><a href="beecrypt_8h.html#a6de16f2df538d071c357144bd119edb6">randomGeneratorContextNext</a></div><div class="ttdeci">int randomGeneratorContextNext(randomGeneratorContext *, byte *, size_t)</div></div> <div class="ttc" id="structblockCipherRaw_html_a9a4f2c65a6c023c811b41bc4b7cd2583"><div class="ttname"><a href="structblockCipherRaw.html#a9a4f2c65a6c023c811b41bc4b7cd2583">blockCipherRaw::encrypt</a></div><div class="ttdeci">const blockCipherRawcrypt encrypt</div><div class="ttdef"><b>Definition:</b> beecrypt.h:627</div></div> <div class="ttc" id="group__BC__m_html_gae6164c8a42013a0b3aadba1bccd416af"><div class="ttname"><a href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af">blockCipherSetCTR</a></div><div class="ttdeci">int(* blockCipherSetCTR)(blockCipherParam *, const byte *, size_t)</div><div class="ttdoc">Prototype definition for an initialization vector setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:596</div></div> <div class="ttc" id="structmpnumber_html"><div class="ttname"><a href="structmpnumber.html">mpnumber</a></div><div class="ttdef"><b>Definition:</b> mpnumber.h:36</div></div> <div class="ttc" id="group__HMAC__m_html_ga64af99fc74e1c766e8d03071b652cb4d"><div class="ttname"><a href="group__HMAC__m.html#ga64af99fc74e1c766e8d03071b652cb4d">keyedHashFunctionParam</a></div><div class="ttdeci">void keyedHashFunctionParam</div><div class="ttdef"><b>Definition:</b> beecrypt.h:414</div></div> <div class="ttc" id="beecrypt_8h_html_a94e1fe0182e49b4fb388d08c93fc1a2c"><div class="ttname"><a href="beecrypt_8h.html#a94e1fe0182e49b4fb388d08c93fc1a2c">blockCipherFeedback</a></div><div class="ttdeci">uint32_t *(* blockCipherFeedback)(blockCipherParam *)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:623</div></div> <div class="ttc" id="structblockCipher_html_a3500d157e1433ee5cbf9e9dfbe7b10f1"><div class="ttname"><a href="structblockCipher.html#a3500d157e1433ee5cbf9e9dfbe7b10f1">blockCipher::keybitsmin</a></div><div class="ttdeci">const size_t keybitsmin</div><div class="ttdoc">The minimum number of key bits. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:664</div></div> <div class="ttc" id="structblockCipher_html_a8d6c03e6f997f3ad8e8a5e2b315ca805"><div class="ttname"><a href="structblockCipher.html#a8d6c03e6f997f3ad8e8a5e2b315ca805">blockCipher::blocksize</a></div><div class="ttdeci">const size_t blocksize</div><div class="ttdoc">The size of one block of data, in bytes. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:660</div></div> <div class="ttc" id="structkeyedHashFunction_html_a8dcbcbe09ad4db164fd6af1749ad0364"><div class="ttname"><a href="structkeyedHashFunction.html#a8dcbcbe09ad4db164fd6af1749ad0364">keyedHashFunction::update</a></div><div class="ttdeci">const keyedHashFunctionUpdate update</div><div class="ttdef"><b>Definition:</b> beecrypt.h:450</div></div> <div class="ttc" id="group__BC__m_html_gace10d4c0b0409d35c6a703d6445fc558"><div class="ttname"><a href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a></div><div class="ttdeci">cipherOperation</div><div class="ttdoc">Specifies whether to perform encryption or decryption. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:556</div></div> <div class="ttc" id="beecrypt_8h_html_aa51655727095acce4c7b4a800f812f3e"><div class="ttname"><a href="beecrypt_8h.html#aa51655727095acce4c7b4a800f812f3e">hashFunctionContextDigestMatch</a></div><div class="ttdeci">int hashFunctionContextDigestMatch(hashFunctionContext *, const mpnumber *)</div></div> <div class="ttc" id="structblockCipher_html_ae9acc23b1b4742e15acf95c44675fe42"><div class="ttname"><a href="structblockCipher.html#ae9acc23b1b4742e15acf95c44675fe42">blockCipher::paramsize</a></div><div class="ttdeci">const size_t paramsize</div><div class="ttdoc">The size of the parameters required by this cipher, in bytes. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:656</div></div> <div class="ttc" id="structkeyedHashFunction_html_ab410f811d5cc9e0a8caa4e68e90b04ee"><div class="ttname"><a href="structkeyedHashFunction.html#ab410f811d5cc9e0a8caa4e68e90b04ee">keyedHashFunction::paramsize</a></div><div class="ttdeci">const size_t paramsize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:442</div></div> <div class="ttc" id="structhashFunction_html_a3fd78b788de29241a4e9991c4d80f11b"><div class="ttname"><a href="structhashFunction.html#a3fd78b788de29241a4e9991c4d80f11b">hashFunction::blocksize</a></div><div class="ttdeci">const size_t blocksize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:308</div></div> <div class="ttc" id="structhashFunction_html"><div class="ttname"><a href="structhashFunction.html">hashFunction</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:301</div></div> <div class="ttc" id="beecrypt_8h_html_a1bb64c9048ca225e217f7b389a15e15f"><div class="ttname"><a href="beecrypt_8h.html#a1bb64c9048ca225e217f7b389a15e15f">randomGeneratorGet</a></div><div class="ttdeci">const randomGenerator * randomGeneratorGet(int)</div></div> <div class="ttc" id="structhashFunction_html_a98dd98a8cf4876963bfa8d77867eaa0e"><div class="ttname"><a href="structhashFunction.html#a98dd98a8cf4876963bfa8d77867eaa0e">hashFunction::update</a></div><div class="ttdeci">const hashFunctionUpdate update</div><div class="ttdef"><b>Definition:</b> beecrypt.h:311</div></div> <div class="ttc" id="beecrypt_8h_html_gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4"><div class="ttname"><a href="beecrypt_8h.html#gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4">NOCRYPT</a></div><div class="ttdef"><b>Definition:</b> beecrypt.h:558</div></div> <div class="ttc" id="beecrypt_8h_html_a9204a2c7e01767e32241350e6ecf7252"><div class="ttname"><a href="beecrypt_8h.html#a9204a2c7e01767e32241350e6ecf7252">hashFunctionFind</a></div><div class="ttdeci">const hashFunction * hashFunctionFind(const char *)</div></div> <div class="ttc" id="structhashFunction_html_a02516a82d753190f953a0c0929a74ae5"><div class="ttname"><a href="structhashFunction.html#a02516a82d753190f953a0c0929a74ae5">hashFunction::digestsize</a></div><div class="ttdeci">const size_t digestsize</div><div class="ttdef"><b>Definition:</b> beecrypt.h:309</div></div> <div class="ttc" id="beecrypt_8h_html_aa229fa59418e9d15628a208933e5a285"><div class="ttname"><a href="beecrypt_8h.html#aa229fa59418e9d15628a208933e5a285">keyedHashFunctionContextDigestMatch</a></div><div class="ttdeci">int keyedHashFunctionContextDigestMatch(keyedHashFunctionContext *, const mpnumber *)</div></div> <div class="ttc" id="structentropySource_html"><div class="ttname"><a href="structentropySource.html">entropySource</a></div><div class="ttdoc">This struct holds information and pointers to code specific to each source of entropy. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:53</div></div> <div class="ttc" id="beecrypt_8h_html_a258c5f71055b05fcc2f52f63ba390d1a"><div class="ttname"><a href="beecrypt_8h.html#a258c5f71055b05fcc2f52f63ba390d1a">randomGeneratorContextSeed</a></div><div class="ttdeci">int randomGeneratorContextSeed(randomGeneratorContext *, const byte *, size_t)</div></div> <div class="ttc" id="beecrypt_8h_html_a038a6cdda18a57d81fdf5b7ff4e713d2"><div class="ttname"><a href="beecrypt_8h.html#a038a6cdda18a57d81fdf5b7ff4e713d2">keyedHashFunctionContextInit</a></div><div class="ttdeci">int keyedHashFunctionContextInit(keyedHashFunctionContext *, const keyedHashFunction *)</div></div> <div class="ttc" id="beecrypt_8h_html_ae3683978875efaebac10e27fc3ecce94"><div class="ttname"><a href="beecrypt_8h.html#ae3683978875efaebac10e27fc3ecce94">randomGeneratorParam</a></div><div class="ttdeci">void randomGeneratorParam</div><div class="ttdef"><b>Definition:</b> beecrypt.h:133</div></div> <div class="ttc" id="beecrypt_8h_html_a327408a893dfada3a2b3964223d7ca8f"><div class="ttname"><a href="beecrypt_8h.html#a327408a893dfada3a2b3964223d7ca8f">hashFunctionContextUpdateMP</a></div><div class="ttdeci">int hashFunctionContextUpdateMP(hashFunctionContext *, const mpnumber *)</div></div> <div class="ttc" id="group__ES__m_html_ga7c36ced3ce2b28b3d61b13ba0b2f9d4d"><div class="ttname"><a href="group__ES__m.html#ga7c36ced3ce2b28b3d61b13ba0b2f9d4d">entropyNext</a></div><div class="ttdeci">int(* entropyNext)(byte *, size_t)</div><div class="ttdoc">Prototype definition for an entropy-generating function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:46</div></div> <div class="ttc" id="structhashFunction_html_aa51a0b4668ecfb06ea497d673ee248c4"><div class="ttname"><a href="structhashFunction.html#aa51a0b4668ecfb06ea497d673ee248c4">hashFunction::reset</a></div><div class="ttdeci">const hashFunctionReset reset</div><div class="ttdef"><b>Definition:</b> beecrypt.h:310</div></div> <div class="ttc" id="beecrypt_8h_html_a5aeb08c14094bb6f148aebc09c8c4056"><div class="ttname"><a href="beecrypt_8h.html#a5aeb08c14094bb6f148aebc09c8c4056">hashFunctionGet</a></div><div class="ttdeci">const hashFunction * hashFunctionGet(int)</div></div> <div class="ttc" id="beecrypt_8h_html_a3c3e95f9cfdc49fd681ecd87c458362d"><div class="ttname"><a href="beecrypt_8h.html#a3c3e95f9cfdc49fd681ecd87c458362d">blockCipherContextSetup</a></div><div class="ttdeci">int blockCipherContextSetup(blockCipherContext *, const byte *, size_t, cipherOperation)</div></div> <div class="ttc" id="group__BC__m_html_ga4bb0a804ab2c38ac56120f1cd35600b3"><div class="ttname"><a href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3">blockCipherSetup</a></div><div class="ttdeci">int(* blockCipherSetup)(blockCipherParam *, const byte *, size_t, cipherOperation)</div><div class="ttdoc">Prototype definition for a setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:573</div></div> <div class="ttc" id="beecrypt_8h_html_a01abf6229b3cf2218a80db61b15523ca"><div class="ttname"><a href="beecrypt_8h.html#a01abf6229b3cf2218a80db61b15523ca">randomGeneratorCount</a></div><div class="ttdeci">int randomGeneratorCount(void)</div></div> <div class="ttc" id="beecrypt_8h_html_ab4a58783bf02d8edec682f5db63b4ab9"><div class="ttname"><a href="beecrypt_8h.html#ab4a58783bf02d8edec682f5db63b4ab9">blockCipherGet</a></div><div class="ttdeci">const blockCipher * blockCipherGet(int)</div><div class="ttdoc">This function returns the n -th blockcipher implemented by the library. </div></div> <div class="ttc" id="beecrypt_8h_html_abc774db9cb9ee113a4050e5b8b310a7d"><div class="ttname"><a href="beecrypt_8h.html#abc774db9cb9ee113a4050e5b8b310a7d">blockCipherContextSetCTR</a></div><div class="ttdeci">int blockCipherContextSetCTR(blockCipherContext *, const byte *, size_t)</div></div> <div class="ttc" id="structrandomGenerator_html_ad3bca12f5cff25a3563d282a6c4f0ba0"><div class="ttname"><a href="structrandomGenerator.html#ad3bca12f5cff25a3563d282a6c4f0ba0">randomGenerator::setup</a></div><div class="ttdeci">const randomGeneratorSetup setup</div><div class="ttdoc">Points to the setup function. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:179</div></div> <div class="ttc" id="beecrypt_8h_html_adedf90e4dd8f70073c38dbd590799575"><div class="ttname"><a href="beecrypt_8h.html#adedf90e4dd8f70073c38dbd590799575">hashFunctionUpdate</a></div><div class="ttdeci">int(* hashFunctionUpdate)(hashFunctionParam *, const byte *, size_t)</div><div class="ttdef"><b>Definition:</b> beecrypt.h:287</div></div> <div class="ttc" id="beecrypt_8h_html_a190d3e4c22c315fed2662a11b333bdac"><div class="ttname"><a href="beecrypt_8h.html#a190d3e4c22c315fed2662a11b333bdac">hashFunctionContextReset</a></div><div class="ttdeci">int hashFunctionContextReset(hashFunctionContext *)</div></div> <div class="ttc" id="beecrypt_8h_html_adfe51a5fdbc3a7637df135930f3fc736"><div class="ttname"><a href="beecrypt_8h.html#adfe51a5fdbc3a7637df135930f3fc736">randomGeneratorFind</a></div><div class="ttdeci">const randomGenerator * randomGeneratorFind(const char *)</div></div> <div class="ttc" id="beecrypt_8h_html_aff01dd7e323ca4832559e06dcd21a50f"><div class="ttname"><a href="beecrypt_8h.html#aff01dd7e323ca4832559e06dcd21a50f">blockCipherCount</a></div><div class="ttdeci">int blockCipherCount(void)</div><div class="ttdoc">This function returns the number of blockciphers implemented by the library. </div></div> <div class="ttc" id="structblockCipher_html_ad42cb478c58af64dd55ba34bea672aea"><div class="ttname"><a href="structblockCipher.html#ad42cb478c58af64dd55ba34bea672aea">blockCipher::keybitsmax</a></div><div class="ttdeci">const size_t keybitsmax</div><div class="ttdoc">The maximum number of key bits. </div><div class="ttdef"><b>Definition:</b> beecrypt.h:668</div></div> <div class="ttc" id="beecrypt_8h_html_a52c030c0c1f7077cc4eb2cd3d26992b4"><div class="ttname"><a href="beecrypt_8h.html#a52c030c0c1f7077cc4eb2cd3d26992b4">keyedHashFunctionFind</a></div><div class="ttdeci">const keyedHashFunction * keyedHashFunctionFind(const char *)</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Sep 27 2013 02:36:25 for BeeCrypt by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>