Generated by JsDoc Toolkit 2.3.3-beta on Wed Nov 06 2013 17:43:37 GMT+0100 (MEZ)
HTML template: Codeview

Class sjcl.ecc.pointJac


Defined in: ecc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
sjcl.ecc.pointJac(x, y, z, curve)
Represents a point on a curve in Jacobian coordinates.
Method Summary
Method Attributes Method Name and Description
 
add(S, T)
Adds S and T and returns the result in Jacobian coordinates.
 
doubles this point.
 
mult(k, affine)
Multiply this point by k and return the answer in Jacobian coordinates.
 
mult2(k, affine, k2, affine)
Multiply this point by k, added to affine2*k2, and return the answer in Jacobian coordinates.
 
Returns a copy of this point converted to affine coordinates.
Class Detail
sjcl.ecc.pointJac(x, y, z, curve)
Represents a point on a curve in Jacobian coordinates. Coordinates can be specified as bigInts or strings (which will be converted to bigInts).
Parameters:
{bigInt/string} x
The x coordinate.
{bigInt/string} y
The y coordinate.
{bigInt/string} z
The z coordinate.
{sjcl.ecc.curve} curve
The curve that this point lies on.
Method Detail
{sjcl.ecc.pointJac} add(S, T)
Adds S and T and returns the result in Jacobian coordinates. Note that S must be in Jacobian coordinates and T must be in affine coordinates.
Parameters:
{sjcl.ecc.pointJac} S
One of the points to add, in Jacobian coordinates.
{sjcl.ecc.point} T
The other point to add, in affine coordinates.
Returns:
{sjcl.ecc.pointJac} The sum of the two points, in Jacobian coordinates.
{sjcl.ecc.pointJac} doubl()
doubles this point.
Returns:
{sjcl.ecc.pointJac} The doubled point.
{sjcl.ecc.pointJac} mult(k, affine)
Multiply this point by k and return the answer in Jacobian coordinates.
Parameters:
{bigInt} k
The coefficient to multiply by.
{sjcl.ecc.point} affine
This point in affine coordinates.
Returns:
{sjcl.ecc.pointJac} The result of the multiplication, in Jacobian coordinates.
{sjcl.ecc.pointJac} mult2(k, affine, k2, affine)
Multiply this point by k, added to affine2*k2, and return the answer in Jacobian coordinates.
Parameters:
{bigInt} k
The coefficient to multiply this by.
{sjcl.ecc.point} affine
This point in affine coordinates.
{bigInt} k2
The coefficient to multiply affine2 this by.
{sjcl.ecc.point} affine
The other point in affine coordinates.
Returns:
{sjcl.ecc.pointJac} The result of the multiplication and addition, in Jacobian coordinates.
{sjcl.ecc.point} toAffine()
Returns a copy of this point converted to affine coordinates.
Returns:
{sjcl.ecc.point} The converted point.