ECP8
ECP8
Kind: global class
this: {"{"}ECP8{"}"}
new ECP8()
Creates an instance of ECP8
ecP8.is_infinity(1)
Tests for ECP8 point equal to infinity
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
1 | if infinity, else returns 0 |
ecP8.copy(P)
Copy ECP8 point to another ECP8 point
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
P | ECP8 instance |
ecP8.inf()
Set ECP8 to point-at-infinity
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.cmove()
conditional move of Q to P dependant on d
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.select()
Constant time select from pre-computed table
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.equals(Q)
Test P == Q
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
Q | ECP8 instance |
ecP8.neg()
set this=-this
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.affine()
convert this to affine, from (x,y,z) to (x,y)
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.getX()
extract affine x as ctx.FP2
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.getY()
extract affine y as ctx.FP2
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.getx()
extract projective x
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.gety()
extract projective y
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.getz()
extract projective z
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.toBytes(b)
convert this to byte arrayextract projective x
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
b | byte array output |
ecP8.toString() ⇒
convert this to hex string
Kind: instance method of ECP8
Returns: hex string
this: {"{"}ECP8{"}"}
ecP8.setxy(ix, iy)
set this=(x,y)
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
ix | x-value |
iy | y-value |
ecP8.setx(ix)
set this=(x,.)
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
ix | x-value |
ecP8.frob()
set this*=q, where q is Modulus, using Frobenius
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.dbl()
this+=this
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.add()
Adds ECP8 instances
param Q ECP8 instance
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
ecP8.sub(Q)
Subtracts ECP instance Q from this
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
Q | ECP8 instance |
ecP8.mul(e)
Multiplies an ECP8 instance P by a BIG, side-channel resistant
Kind: instance method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
e | BIG number multiplier |
ECP8.generator()
Set group generator
Kind: static method of ECP8
this: {"{"}ECP8{"}"}
ECP8.fromBytes(b)
convert from byte array to point
Kind: static method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
b | input byte array |
ECP8.RHS(x)
Calculate RHS of curve equation x^3+B
Kind: static method of ECP8
this: {"{"}ECP8{"}"}
Param | Description |
---|---|
x | x-value |
ECP8.mul16()
Calculate P=u0.Q0+u1_Q1+u2_Q2+u3*Q3...
Kind: static method of ECP8
this: {"{"}ECP8{"}"}