Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > d1d38291248b5ff58339d3d2ddb22ecd > files > 843

lib64beecrypt-devel-4.2.1-13.mga4.x86_64.rpm

<!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/rsakp.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
   &#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;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">rsakp.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="rsakp_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>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2000, 2001, 2002 X-Way Rights BV</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifndef _RSAKP_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _RSAKP_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="rsapk_8h.html">beecrypt/rsapk.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structrsakp.html">   35</a></span>&#160;<span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a> <a class="code" href="structrsakp.html">rsakp</a></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;#else</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;struct _rsakp</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;#endif</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structrsakp.html#adbc15b4210d17c77cc254fb6b1b27c11">   45</a></span>&#160;    <a class="code" href="structmpbarrett.html">mpbarrett</a> <a class="code" href="structrsakp.html#adbc15b4210d17c77cc254fb6b1b27c11">n</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structrsakp.html#ab7ca6e4f3264e46ae514ccb604440567">   49</a></span>&#160;    <a class="code" href="structmpnumber.html">mpnumber</a> <a class="code" href="structrsakp.html#ab7ca6e4f3264e46ae514ccb604440567">e</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structrsakp.html#a19d133f074c21ffd28a95ba1e5e74b61">   53</a></span>&#160;    <a class="code" href="structmpnumber.html">mpnumber</a> <a class="code" href="structrsakp.html#a19d133f074c21ffd28a95ba1e5e74b61">d</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structrsakp.html#adb3c0bb13f27ff87c07940bc1fc3b605">   57</a></span>&#160;    <a class="code" href="structmpbarrett.html">mpbarrett</a> <a class="code" href="structrsakp.html#adb3c0bb13f27ff87c07940bc1fc3b605">p</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structrsakp.html#afd7877e66f5b03e87fc769d494d8bd8b">   61</a></span>&#160;    <a class="code" href="structmpbarrett.html">mpbarrett</a> <a class="code" href="structrsakp.html#afd7877e66f5b03e87fc769d494d8bd8b">q</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structrsakp.html#a5472e50eafbe0568429de42a93cca49d">   66</a></span>&#160;    <a class="code" href="structmpnumber.html">mpnumber</a> <a class="code" href="structrsakp.html#a5472e50eafbe0568429de42a93cca49d">dp</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structrsakp.html#a1c585943f9bf7c3500da5da6e753c317">   71</a></span>&#160;    <a class="code" href="structmpnumber.html">mpnumber</a> <a class="code" href="structrsakp.html#a1c585943f9bf7c3500da5da6e753c317">dq</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structrsakp.html#a4ca9ef5c555e914582cdd560e8c5aca0">   76</a></span>&#160;    <a class="code" href="structmpnumber.html">mpnumber</a> <a class="code" href="structrsakp.html#a4ca9ef5c555e914582cdd560e8c5aca0">qi</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">    #ifdef __cplusplus</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor"></span>    <a class="code" href="structrsakp.html">rsakp</a>();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="structrsakp.html">rsakp</a>(<span class="keyword">const</span> <a class="code" href="structrsakp.html">rsakp</a>&amp;);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    ~<a class="code" href="structrsakp.html">rsakp</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">    #endif</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor"></span>};</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#ifndef __cplusplus</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_rsakp <a class="code" href="structrsakp.html">rsakp</a>;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keywordtype">int</span> <a class="code" href="rsakp_8h.html#ad6a838f2af71e5c642e8adc30efc08f4">rsakpMake</a>(<a class="code" href="structrsakp.html">rsakp</a>*, <a class="code" href="structrandomGeneratorContext.html">randomGeneratorContext</a>*, <span class="keywordtype">size_t</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keywordtype">int</span> <a class="code" href="rsakp_8h.html#a2d283e0d49d39b0d5d7f1ced4cdcad81">rsakpInit</a>(<a class="code" href="structrsakp.html">rsakp</a>*);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keywordtype">int</span> <a class="code" href="rsakp_8h.html#a347ab1174b3381bfd0bc3a47cfdd97e0">rsakpFree</a>(<a class="code" href="structrsakp.html">rsakp</a>*);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<a class="code" href="api_8h.html#a4f699d64328623c51b22f3b3f1ff4150">BEECRYPTAPI</a></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keywordtype">int</span> <a class="code" href="rsakp_8h.html#a26a0983d3b344d13eda480ab3eba5862">rsakpCopy</a>(<a class="code" href="structrsakp.html">rsakp</a>*, <span class="keyword">const</span> <a class="code" href="structrsakp.html">rsakp</a>*);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="structrsakp_html_a4ca9ef5c555e914582cdd560e8c5aca0"><div class="ttname"><a href="structrsakp.html#a4ca9ef5c555e914582cdd560e8c5aca0">rsakp::qi</a></div><div class="ttdeci">mpnumber qi</div><div class="ttdoc">the crt coefficient.  </div><div class="ttdef"><b>Definition:</b> rsakp.h:76</div></div>
<div class="ttc" id="structrsakp_html_adb3c0bb13f27ff87c07940bc1fc3b605"><div class="ttname"><a href="structrsakp.html#adb3c0bb13f27ff87c07940bc1fc3b605">rsakp::p</a></div><div class="ttdeci">mpbarrett p</div><div class="ttdoc">The first prime factor of the modulus. </div><div class="ttdef"><b>Definition:</b> rsakp.h:57</div></div>
<div class="ttc" id="structrsakp_html_a5472e50eafbe0568429de42a93cca49d"><div class="ttname"><a href="structrsakp.html#a5472e50eafbe0568429de42a93cca49d">rsakp::dp</a></div><div class="ttdeci">mpnumber dp</div><div class="ttdoc">the first prime coefficient.  </div><div class="ttdef"><b>Definition:</b> rsakp.h:66</div></div>
<div class="ttc" id="structrsakp_html_a1c585943f9bf7c3500da5da6e753c317"><div class="ttname"><a href="structrsakp.html#a1c585943f9bf7c3500da5da6e753c317">rsakp::dq</a></div><div class="ttdeci">mpnumber dq</div><div class="ttdoc">the second prime coefficient.  </div><div class="ttdef"><b>Definition:</b> rsakp.h:71</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="rsakp_8h_html_a2d283e0d49d39b0d5d7f1ced4cdcad81"><div class="ttname"><a href="rsakp_8h.html#a2d283e0d49d39b0d5d7f1ced4cdcad81">rsakpInit</a></div><div class="ttdeci">int rsakpInit(rsakp *)</div></div>
<div class="ttc" id="structrsakp_html_a19d133f074c21ffd28a95ba1e5e74b61"><div class="ttname"><a href="structrsakp.html#a19d133f074c21ffd28a95ba1e5e74b61">rsakp::d</a></div><div class="ttdeci">mpnumber d</div><div class="ttdoc">The private exponent. </div><div class="ttdef"><b>Definition:</b> rsakp.h:53</div></div>
<div class="ttc" id="rsapk_8h_html"><div class="ttname"><a href="rsapk_8h.html">rsapk.h</a></div><div class="ttdoc">RSA public key, headers. </div></div>
<div class="ttc" id="structrsakp_html"><div class="ttname"><a href="structrsakp.html">rsakp</a></div><div class="ttdoc">RSA keypair. </div><div class="ttdef"><b>Definition:</b> rsakp.h:35</div></div>
<div class="ttc" id="rsakp_8h_html_a26a0983d3b344d13eda480ab3eba5862"><div class="ttname"><a href="rsakp_8h.html#a26a0983d3b344d13eda480ab3eba5862">rsakpCopy</a></div><div class="ttdeci">int rsakpCopy(rsakp *, const rsakp *)</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="rsakp_8h_html_ad6a838f2af71e5c642e8adc30efc08f4"><div class="ttname"><a href="rsakp_8h.html#ad6a838f2af71e5c642e8adc30efc08f4">rsakpMake</a></div><div class="ttdeci">int rsakpMake(rsakp *, randomGeneratorContext *, size_t)</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="rsakp_8h_html_a347ab1174b3381bfd0bc3a47cfdd97e0"><div class="ttname"><a href="rsakp_8h.html#a347ab1174b3381bfd0bc3a47cfdd97e0">rsakpFree</a></div><div class="ttdeci">int rsakpFree(rsakp *)</div></div>
<div class="ttc" id="structrsakp_html_afd7877e66f5b03e87fc769d494d8bd8b"><div class="ttname"><a href="structrsakp.html#afd7877e66f5b03e87fc769d494d8bd8b">rsakp::q</a></div><div class="ttdeci">mpbarrett q</div><div class="ttdoc">The second prime factor of the modulus. </div><div class="ttdef"><b>Definition:</b> rsakp.h:61</div></div>
<div class="ttc" id="structrsakp_html_adbc15b4210d17c77cc254fb6b1b27c11"><div class="ttname"><a href="structrsakp.html#adbc15b4210d17c77cc254fb6b1b27c11">rsakp::n</a></div><div class="ttdeci">mpbarrett n</div><div class="ttdoc">The modulus. </div><div class="ttdef"><b>Definition:</b> rsakp.h:45</div></div>
<div class="ttc" id="structmpbarrett_html"><div class="ttname"><a href="structmpbarrett.html">mpbarrett</a></div><div class="ttdef"><b>Definition:</b> mpbarrett.h:37</div></div>
<div class="ttc" id="structrsakp_html_ab7ca6e4f3264e46ae514ccb604440567"><div class="ttname"><a href="structrsakp.html#ab7ca6e4f3264e46ae514ccb604440567">rsakp::e</a></div><div class="ttdeci">mpnumber e</div><div class="ttdoc">The public exponent. </div><div class="ttdef"><b>Definition:</b> rsakp.h:49</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 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>