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}

ParamDescription
1if infinity, else returns 0

ecP8.copy(P)

Copy ECP8 point to another ECP8 point

Kind: instance method of ECP8
this: {ECP8}

ParamDescription
PECP8 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}

ParamDescription
QECP8 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}

ParamDescription
bbyte 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}

ParamDescription
ixx-value
iyy-value

ecP8.setx(ix)

set this=(x,.)

Kind: instance method of ECP8
this: {ECP8}

ParamDescription
ixx-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}

ParamDescription
QECP8 instance

ecP8.mul(e)

Multiplies an ECP8 instance P by a BIG, side-channel resistant

Kind: instance method of ECP8
this: {ECP8}

ParamDescription
eBIG 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}

ParamDescription
binput byte array

ECP8.RHS(x)

Calculate RHS of curve equation x^3+B

Kind: static method of ECP8
this: {ECP8}

ParamDescription
xx-value

ECP8.mul16()

Calculate P=u0.Q0+u1Q1+u2Q2+u3*Q3...

Kind: static method of ECP8
this: {ECP8}