Kind: global class
this: {ECP}
Creates an instance of ECP
Tests for ECP point equal to infinity
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
1 | if infinity, else returns 0 |
conditional swap of this and Q dependant on dCopy ECP point to another ECP point
Kind: instance method of ECP
this: {ECP}
conditional move of Q to P dependant on d
Kind: instance method of ECP
this: {ECP}
Constant time select from pre-computed table
Kind: instance method of ECP
this: {ECP}
Copy ECP point to another ECP point
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
P | ECP instance |
set this=-this
Kind: instance method of ECP
this: {ECP}
Set ECP to point-at-infinity
Kind: instance method of ECP
this: {ECP}
set this=(x,y)
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
ix | x-value |
iy | y-value |
set this=x, where x is ctx.BIG, y is derived from sign s
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
ix | x-value |
s | sign to derive y |
set this=x, y calculated from curve equation
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
ix | x-value |
convert this to affine, from (x,y,z) to (x,y)
Kind: instance method of ECP
this: {ECP}
extract affine x as ctx.FP2
Kind: instance method of ECP
this: {ECP}
extract affine y as ctx.FP2
Kind: instance method of ECP
this: {ECP}
get sign of Y
Kind: instance method of ECP
this: {ECP}
extract x as ctx.FP
Kind: instance method of ECP
this: {ECP}
extract y as ctx.FP
Kind: instance method of ECP
this: {ECP}
extract z as ctx.FP
Kind: instance method of ECP
this: {ECP}
convert this to byte arrayextract projective x
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
b | byte array output |
convert this to hex string
Kind: instance method of ECP
Returns: hex string
this: {ECP}
this+=this
Kind: instance method of ECP
this: {ECP}
Adds ECP instances
param Q ECP instance
Kind: instance method of ECP
this: {ECP}
Subtracts ECP instance Q from this
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
Q | ECP instance |
constant time multiply by small integer of length bts - use ladder
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
e | small integer |
bts | e bit length |
multiply this by the curves cofactor
Kind: instance method of ECP
this: {ECP}
Multiplies an ECP instance P by a BIG, side-channel resistant
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
e | BIG number multiplier |
Return e.this+f.Q
Kind: instance method of ECP
this: {ECP}
Param | Description |
---|---|
e | BIG number multiplier |
Q | ECP instance |
f | BIG number multiplier |
Set group generator
Kind: static method of ECP
this: {ECP}
convert from byte array to point
Kind: static method of ECP
this: {ECP}
Param | Description |
---|---|
b | input byte array |
Calculate RHS of the curve equation
Kind: static method of ECP
this: {ECP}
Param | Description |
---|---|
x | x-value |