Elliptic Curve Digital Signature Algorithm: Difference between revisions
Content added Content deleted
(Tidying up and added output examples) |
No edit summary |
||
Line 285: | Line 285: | ||
printf (" (mod %lld)\n", e.N); |
printf (" (mod %lld)\n", e.N); |
||
pprint ("base point G", e.G); |
pprint ("base point G", e.G); |
||
printf ("order(G, |
printf ("order(G, E) = %lld\n", e.r); |
||
return 1; |
return 1; |
||
Line 453: | Line 453: | ||
E: y^2 = x^3 + 355x + 671 (mod 1073741789) |
E: y^2 = x^3 + 355x + 671 (mod 1073741789) |
||
base point G (13693, 10088) |
base point G (13693, 10088) |
||
order(G, |
order(G, E) = 1073807281 |
||
key generation |
key generation |
||
Line 650: | Line 650: | ||
print " (mod ";str(e.N);")" |
print " (mod ";str(e.N);")" |
||
pprint ("base point G", e.G) |
pprint ("base point G", e.G) |
||
print "order(G, |
print "order(G, E) ="; e.r |
||
ellinit = -1 |
ellinit = -1 |
||
Line 818: | Line 818: | ||
E: y^2 = x^3 + 355x + 671 (mod 1073741789) |
E: y^2 = x^3 + 355x + 671 (mod 1073741789) |
||
base point G (13693, 10088) |
base point G (13693, 10088) |
||
order(G, |
order(G, E) = 1073807281 |
||
key generation |
key generation |