Branch: Tag:

2014-08-14

2014-08-14 14:51:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.Sign: Added sub-class State.

This makes the Crypto.Sign API to behave closer to the other Crypto APIs.

This affects code that uses Crypto.RSA and Crypto.DSA (which now are
modules and not classes).

Crypto.ECC.Curve.ECDSA is currently unmodified.

1: + <html> +  <head> +  <title>Pike Reference Manual - Crypto.DSA.State()-&gt;raw_sign()</title> +  <link rel='stylesheet' href='../../../../../style.css' /> +  <style type='text/css'> + svg line { stroke:#343434; stroke-width:2; } + svg text { fill:#343434; } + svg a { fill:#0768b2; text-decoration: underline; } + </style>    -  +  </head> +  <body link="#0768b2" alink="#002040" vlink="#0768b2"> +  <header> +  <div> +  <div style="text-align:right;">Extracted from as of .</div> +  <div style="overflow:hidden;"> +  <a href="http://pike.lysator.liu.se/" +  style="float:left; width:181px; height:41px; margin:10px; +  margin-left:22px; margin-right:25px; +  background-image:url('../../../../../../images/pike_logo.gif');"></a> +  <div style="margin:10px; height:11px; +  margin-top:26px; margin-right:19px; +  overflow:hidden; +  background-image:url('../../../../../../images/pike_line_middle.gif');"> +  <span style="float:left; width:5px; height:11px; +  background-image:url('../../../../../../images/pike_line_left.gif');">&nbsp;</span> +  <span style="float:right; width:5px; height:11px; +  background-image:url('../../../../../../images/pike_line_right.gif');">&nbsp;</span> +  </div> +  </div> +  </div> +  </header> +  +  <div> +  <div class="navbar"> +  <nav> +  <a href='../../../../../index.html'><b class='top head'>Top</b></a> + <a href='../../../../../ex/predef_3A_3A/Crypto.html'><b class='head'>Crypto</b></a> + <a href='../../../../../ex/predef_3A_3A/Crypto/DSA.html'><b class='head'>Crypto.DSA</b></a> + <a href='../../../../../ex/predef_3A_3A/Crypto/DSA/State.html'><b class='head'>Crypto.DSA.State</b></a> + <script></script> + <noscript> + <div class='sidebar'> + <a href='../../../../../ex/predef_3A_3A/Crypto/DSA/State/index.html'><b>Symbol index</b></a><br /> + </div> + </noscript> +  +  </nav> +  </div> +  <div class="navbox"> +  <nav> +  <div class="sidebar"> +  <a href="../../../../../ex/predef_3A_3A/Crypto/DSA/State/public_key_equal.html" class="left" +  ><img src="../../../../../../images/prev.gif" hspace="3" +  border="0" alt="previous" +  >Crypto.DSA.State()-&gt;public_key_equal()</a> +  <a href="../../../../../ex/predef_3A_3A/Crypto/DSA/State/raw_verify.html" class="right" +  >Crypto.DSA.State()-&gt;raw_verify()<img src="../../../../../../images/next.gif" hspace="3" +  border="0" alt="next" +  ></a> +  </div> +  </nav> +  </div> +  <div class="contentbox"> +  <article> +  <h1>Method Crypto.DSA.State()-&gt;raw_sign()</h1> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>raw_sign</b></span> + </dt> + <dd><p><code><code class='datatype'>array</code>(<code class='object resolved'><a class='ms reference' href='../../../../predef_3A_3A/Gmp/mpz.html'>Gmp.mpz</a></code>) <b><span class='method'>raw_sign</span>(</b><code class='object resolved'><a class='ms reference' href='../../../../predef_3A_3A/Gmp/mpz.html'>Gmp.mpz</a></code> <code class='argument'>h</code>, <code class='datatype'>void</code>|<code class='object resolved'><a class='ms reference' href='../../../../predef_3A_3A/Gmp/mpz.html'>Gmp.mpz</a></code> <code class='argument'>k</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Sign the message <code class='reference paramref'>h</code>. Returns the signature as two <a class='ms reference' href='../../../../predef_3A_3A/Gmp/mpz.html'>Gmp.mpz</a> +  objects.</p> + </dd></dl> +  +  </article> +  <footer> +  <hr size="1" noshade="1" /> +  </footer> +  </div> +  </div> +  </body> + <script>PikeDoc.current = {"link":"ex/predef_3A_3A/Crypto/DSA/State/raw_sign.html","name":"raw_sign"};</script> + <script src='../../../../../ex/predef_3A_3A/Crypto/DSA/State/index.js'></script> + <script src='../../../../../ex/predef_3A_3A/Crypto/DSA/State/load_index.js'></script> + </html>   Newline at end of file added.