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