Kind: global class
this: {ECP2}
Creates an instance of ECP2
Tests for ECP2 point equal to infinity
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
1 | if infinity, else returns 0 |
Copy ECP2 point to another ECP2 point
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
P | ECP2 instance |
Set ECP2 to point-at-infinity
Kind: instance method of ECP2
this: {ECP2}
conditional move of Q to P dependant on d
Kind: instance method of ECP2
this: {ECP2}
Constant time select from pre-computed table
Kind: instance method of ECP2
this: {ECP2}
Test P == Q
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
Q | ECP2 instance |
set this=-this
Kind: instance method of ECP2
this: {ECP2}
convert this to affine, from (x,y,z) to (x,y)
Kind: instance method of ECP2
this: {ECP2}
extract affine x as ctx.FP2
Kind: instance method of ECP2
this: {ECP2}
extract affine y as ctx.FP2
Kind: instance method of ECP2
this: {ECP2}
extract projective x
Kind: instance method of ECP2
this: {ECP2}
extract projective y
Kind: instance method of ECP2
this: {ECP2}
extract projective z
Kind: instance method of ECP2
this: {ECP2}
convert this to byte arrayextract projective x
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
b | byte array output |
convert this to hex string
Kind: instance method of ECP2
Returns: hex string
this: {ECP2}
set this=(x,y)
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
ix | x-value |
iy | y-value |
set this=(x,.)
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
ix | x-value |
set this*=q, where q is Modulus, using Frobenius
Kind: instance method of ECP2
this: {ECP2}
this+=this
Kind: instance method of ECP2
this: {ECP2}
Adds ECP2 instances
param Q ECP2 instance
Kind: instance method of ECP2
this: {ECP2}
Subtracts ECP instance Q from this
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
Q | ECP2 instance |
Multiplies an ECP2 instance P by a BIG, side-channel resistant
Kind: instance method of ECP2
this: {ECP2}
Param | Description |
---|---|
e | BIG number multiplier |
Set group generator
Kind: static method of ECP2
this: {ECP2}
convert from byte array to point
Kind: static method of ECP2
this: {ECP2}
Param | Description |
---|---|
b | input byte array |
Calculate RHS of curve equation x^3+B
Kind: static method of ECP2
this: {ECP2}
Param | Description |
---|---|
x | x-value |
Calculate P=u0.Q0+u1Q1+u2Q2+u3*Q3
Kind: static method of ECP2
this: {ECP2}