Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 17f48c047155a7d4c992d6a672acd57f > files > 633

libcryptopp-devel-7.0.0-1.1.mga7.armv7hl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crypto++: DL_Algorithm_NR&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Crypto++
   &#160;<span id="projectnumber">7.0</span>
   </div>
   <div id="projectbrief">Free&nbsp;C&#43;&#43;&nbsp;class&nbsp;library&nbsp;of&nbsp;cryptographic&nbsp;schemes</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_d_l___algorithm___n_r-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">DL_Algorithm_NR&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="struct_n_r.html" title="NR signature scheme.">NR</a> algorithm.  
 <a href="class_d_l___algorithm___n_r.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for DL_Algorithm_NR&lt; T &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="class_d_l___algorithm___n_r.png" usemap="#DL_5FAlgorithm_5FNR_3C_20T_20_3E_map" alt=""/>
  <map id="DL_5FAlgorithm_5FNR_3C_20T_20_3E_map" name="DL_5FAlgorithm_5FNR_3C_20T_20_3E_map">
<area href="class_d_l___elgamal_like_signature_algorithm.html" title="Interface for Elgamal-like signature algorithms." alt="DL_ElgamalLikeSignatureAlgorithm&lt; T &gt;" shape="rect" coords="0,0,240,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8d581a1b4a90f9ccb033f04551df3b51"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___algorithm___n_r.html#a8d581a1b4a90f9ccb033f04551df3b51">Sign</a> (const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;params, const <a class="el" href="class_integer.html">Integer</a> &amp;x, const <a class="el" href="class_integer.html">Integer</a> &amp;k, const <a class="el" href="class_integer.html">Integer</a> &amp;e, <a class="el" href="class_integer.html">Integer</a> &amp;r, <a class="el" href="class_integer.html">Integer</a> &amp;s) const</td></tr>
<tr class="memdesc:a8d581a1b4a90f9ccb033f04551df3b51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sign a message using a private key.  <a href="#a8d581a1b4a90f9ccb033f04551df3b51">More...</a><br /></td></tr>
<tr class="separator:a8d581a1b4a90f9ccb033f04551df3b51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1751a1111a3dc80e289eb522fc752747"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___algorithm___n_r.html#a1751a1111a3dc80e289eb522fc752747">Verify</a> (const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;params, const <a class="el" href="class_d_l___public_key.html">DL_PublicKey</a>&lt; T &gt; &amp;publicKey, const <a class="el" href="class_integer.html">Integer</a> &amp;e, const <a class="el" href="class_integer.html">Integer</a> &amp;r, const <a class="el" href="class_integer.html">Integer</a> &amp;s) const</td></tr>
<tr class="memdesc:a1751a1111a3dc80e289eb522fc752747"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verify a message using a public key.  <a href="#a1751a1111a3dc80e289eb522fc752747">More...</a><br /></td></tr>
<tr class="separator:a1751a1111a3dc80e289eb522fc752747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_d_l___elgamal_like_signature_algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_d_l___elgamal_like_signature_algorithm')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_d_l___elgamal_like_signature_algorithm.html">DL_ElgamalLikeSignatureAlgorithm&lt; T &gt;</a></td></tr>
<tr class="memitem:af5040f7c2b09df00481706dabb3d844d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_integer.html">Integer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#af5040f7c2b09df00481706dabb3d844d">RecoverPresignature</a> (const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;params, const <a class="el" href="class_d_l___public_key.html">DL_PublicKey</a>&lt; T &gt; &amp;publicKey, const <a class="el" href="class_integer.html">Integer</a> &amp;r, const <a class="el" href="class_integer.html">Integer</a> &amp;s) const</td></tr>
<tr class="memdesc:af5040f7c2b09df00481706dabb3d844d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recover a Presignature.  <a href="class_d_l___elgamal_like_signature_algorithm.html#af5040f7c2b09df00481706dabb3d844d">More...</a><br /></td></tr>
<tr class="separator:af5040f7c2b09df00481706dabb3d844d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3b8afddf69e2d1be2e8bda56c4e7c0a inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#ae3b8afddf69e2d1be2e8bda56c4e7c0a">RLen</a> (const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;params) const</td></tr>
<tr class="memdesc:ae3b8afddf69e2d1be2e8bda56c4e7c0a inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve R length.  <a href="class_d_l___elgamal_like_signature_algorithm.html#ae3b8afddf69e2d1be2e8bda56c4e7c0a">More...</a><br /></td></tr>
<tr class="separator:ae3b8afddf69e2d1be2e8bda56c4e7c0a inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2324392a1d7e651c064f70fefcafbc7 inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#ad2324392a1d7e651c064f70fefcafbc7">SLen</a> (const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;params) const</td></tr>
<tr class="memdesc:ad2324392a1d7e651c064f70fefcafbc7 inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve S length.  <a href="class_d_l___elgamal_like_signature_algorithm.html#ad2324392a1d7e651c064f70fefcafbc7">More...</a><br /></td></tr>
<tr class="separator:ad2324392a1d7e651c064f70fefcafbc7 inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e463485352ef3c352acc4d9af2c258d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#a0e463485352ef3c352acc4d9af2c258d">IsDeterministic</a> () const</td></tr>
<tr class="memdesc:a0e463485352ef3c352acc4d9af2c258d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signature scheme flag.  <a href="class_d_l___elgamal_like_signature_algorithm.html#a0e463485352ef3c352acc4d9af2c258d">More...</a><br /></td></tr>
<tr class="separator:a0e463485352ef3c352acc4d9af2c258d inherit pub_methods_class_d_l___elgamal_like_signature_algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:afa3ee743b03f90439000e929f8b7309f"><td class="memItemLeft" align="right" valign="top"><a id="afa3ee743b03f90439000e929f8b7309f"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>StaticAlgorithmName</b> ()</td></tr>
<tr class="separator:afa3ee743b03f90439000e929f8b7309f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class DL_Algorithm_NR&lt; T &gt;</h3>

<p><a class="el" href="struct_n_r.html" title="NR signature scheme.">NR</a> algorithm. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>FieldElement type or class </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="gfpcrypt_8h_source.html#l00430">430</a> of file <a class="el" href="gfpcrypt_8h_source.html">gfpcrypt.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a8d581a1b4a90f9ccb033f04551df3b51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d581a1b4a90f9ccb033f04551df3b51">&#9670;&nbsp;</a></span>Sign()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_d_l___algorithm___n_r.html">DL_Algorithm_NR</a>&lt; T &gt;::Sign </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>privateKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sign a message using a private key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">params</td><td>GroupParameters </td></tr>
    <tr><td class="paramname">privateKey</td><td>private key </td></tr>
    <tr><td class="paramname">k</td><td>signing exponent </td></tr>
    <tr><td class="paramname">e</td><td>encoded message </td></tr>
    <tr><td class="paramname">r</td><td>r part of signature </td></tr>
    <tr><td class="paramname">s</td><td>s part of signature </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#a033808f79700a901d7fb183e6dab247a">DL_ElgamalLikeSignatureAlgorithm&lt; T &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="gfpcrypt_8h_source.html#l00437">437</a> of file <a class="el" href="gfpcrypt_8h_source.html">gfpcrypt.h</a>.</p>

</div>
</div>
<a id="a1751a1111a3dc80e289eb522fc752747"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1751a1111a3dc80e289eb522fc752747">&#9670;&nbsp;</a></span>Verify()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_d_l___algorithm___n_r.html">DL_Algorithm_NR</a>&lt; T &gt;::Verify </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_d_l___group_parameters.html">DL_GroupParameters</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_d_l___public_key.html">DL_PublicKey</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>publicKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Verify a message using a public key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">params</td><td>GroupParameters </td></tr>
    <tr><td class="paramname">publicKey</td><td>public key </td></tr>
    <tr><td class="paramname">e</td><td>encoded message </td></tr>
    <tr><td class="paramname">r</td><td>r part of signature </td></tr>
    <tr><td class="paramname">s</td><td>s part of signature </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_d_l___elgamal_like_signature_algorithm.html#af1f4e4ba20583c45514ece27cf97b8d2">DL_ElgamalLikeSignatureAlgorithm&lt; T &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="gfpcrypt_8h_source.html#l00445">445</a> of file <a class="el" href="gfpcrypt_8h_source.html">gfpcrypt.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="gfpcrypt_8h_source.html">gfpcrypt.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 27 2019 15:04:06 for Crypto++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>