Skip to content

Commit

Permalink
Change the default domain parameters for the modk curve.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacorbellini committed May 23, 2015
1 parent 445fac3 commit 0bb9742
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions interactive/modk-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ <h1>Elliptic Curve point addition (&#120125;<sub>p</sub>)</h1>
<div id="form">
<div id="curve-coefficients" class="parameters">
<p>Curve:</p>
<div class="parameter curve-coefficient"><label for="coefficient-a">a</label><input id="coefficient-a" name="a" value="-7" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-b">b</label><input id="coefficient-b" name="b" value="10" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-a">a</label><input id="coefficient-a" name="a" value="2" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-b">b</label><input id="coefficient-b" name="b" value="3" type="number" step="1"></div>
</div>
<div id="field-coefficients" class="parameters">
<p>Field:</p>
<div class="parameter curve-coefficient"><label for="coefficient-p">p</label><input id="coefficient-p" name="p" value="11" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-p">p</label><input id="coefficient-p" name="p" value="97" type="number" step="1"></div>
<div class="placeholder"></div>
</div>
<div id="point-p-coordinates" class="parameters">
<p><em>P</em>:</p>
<div class="parameter point-coordinate"><label for="point-p-x">x</label><input id="point-p-x" name="px" value="1" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-y">y</label><input id="point-p-y" name="py" value="2" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-x">x</label><input id="point-p-x" name="px" value="3" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-y">y</label><input id="point-p-y" name="py" value="6" type="number" step="1"></div>
</div>
<div id="point-q-coordinates" class="parameters">
<p><em>Q</em>:</p>
Expand Down
10 changes: 5 additions & 5 deletions interactive/modk-mul.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ <h1>Elliptic Curve scalar multiplication (&#120125;<sub>p</sub>)</h1>
<div id="form">
<div id="curve-coefficients" class="parameters">
<p>Curve:</p>
<div class="parameter curve-coefficient"><label for="coefficient-a">a</label><input id="coefficient-a" name="a" value="-7" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-b">b</label><input id="coefficient-b" name="b" value="10" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-a">a</label><input id="coefficient-a" name="a" value="2" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-b">b</label><input id="coefficient-b" name="b" value="3" type="number" step="1"></div>
</div>
<div id="field-coefficients" class="parameters">
<p>Field:</p>
<div class="parameter curve-coefficient"><label for="coefficient-p">p</label><input id="coefficient-p" name="p" value="11" type="number" step="1"></div>
<div class="parameter curve-coefficient"><label for="coefficient-p">p</label><input id="coefficient-p" name="p" value="97" type="number" step="1"></div>
<div class="placeholder"></div>
</div>
<div id="scalars" class="parameters">
Expand All @@ -44,8 +44,8 @@ <h1>Elliptic Curve scalar multiplication (&#120125;<sub>p</sub>)</h1>
</div>
<div id="point-p-coordinates" class="parameters">
<p><em>P</em>:</p>
<div class="parameter point-coordinate"><label for="point-p-x">x</label><input id="point-p-x" name="px" value="1" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-y">y</label><input id="point-p-y" name="py" value="2" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-x">x</label><input id="point-p-x" name="px" value="3" type="number" step="1"></div>
<div class="parameter point-coordinate"><label for="point-p-y">y</label><input id="point-p-y" name="py" value="6" type="number" step="1"></div>
</div>
<div id="point-r-coordinates" class="parameters">
<p><em>Q</em> = <em>n</em> &middot; <em>P</em>:</p>
Expand Down

0 comments on commit 0bb9742

Please sign in to comment.