GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Math::Prime::Util::ECProjectivePoint(3) User Contributed Perl Documentation Math::Prime::Util::ECProjectivePoint(3)

Math::Prime::Util::ECProjectivePoint - Elliptic curve operations for projective points

Version 0.73

  # Create a point on a curve (a,b,n) with coordinates 0,1
  my $ECP = Math::Prime::Util::ECProjectivePoint->new($c, $n, 0, 1);

  # scalar multiplication by $k.
  $ECP->mul($k);

  # add two points on the same curve
  $ECP->add($ECP2);

  say "P = O" if $ECP->is_infinity();

This really should just be in Math::EllipticCurve.

To write.

  $point = Math::Prime::Util::ECProjectivePoint->new(c, n, x, z);

Returns a new point on the curve defined by the Montgomery parameter c.

Returns the "c", "d", or "n" values that describe the curve.

Returns the precalculated value of "int( (c + 2) / 4 )".

Returns the "x" or "z" values that define the point on the curve.

Returns a possible factor found after "normalize".

Takes another point on the same curve as an argument and adds it this point.

Double the current point on the curve.

Takes an integer and performs scalar multiplication of the point.

Returns true if the point is (0,1), which is the point at infinity for the affine coordinates.

Returns a copy of the point.

Performs an extended GCD operation to make "z=1". If a factor of "n" is found it is put in "f".

Math::EllipticCurve::Prime

This really should just be in a Math::EllipticCurve module.

Dana Jacobsen <dana@acm.org>

Copyright 2012-2013 by Dana Jacobsen <dana@acm.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2018-11-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.