Kind: global class
this: {FP2}
Creates an instance of FP2.
Reduces all components of possibly unreduced FP2 mod Modulus
Kind: instance method of FP2
this: {FP2}
Normalises the components of an FP2
Kind: instance method of FP2
this: {FP2}
Tests for FP2 equal to zero
Kind: instance method of FP2
this: {FP2}
Tests for FP2 equal to unity
Kind: instance method of FP2
this: {FP2}
Conditional copy of FP2 number
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
g | FP2 instance |
d | copy depends on this value |
Tests for equality of two FP2 instances
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance to compare |
extract a from this
Kind: instance method of FP2
this: {FP2}
extract b from this
Kind: instance method of FP2
this: {FP2}
Set FP2 from two FP values
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
c | FP instance |
d | FP instance |
Set FP2 from one FP value
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
c | FP instance |
Set FP2 from two BIG values
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
c | BIG instance |
d | BIG instance |
Set FP2 from one BIG value
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
c | BIG instance |
Copy FP2 to another FP2
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance to be copied |
Set FP2 to zero
Kind: instance method of FP2
this: {FP2}
Set FP2 to unity
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance to be set to one |
negate this
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance to be set to one |
Conjugation of FP2
Kind: instance method of FP2
this: {FP2}
addition of two FP2s
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance |
subtraction of two FP2s
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
x | FP2 instance |
Multiplication of an FP2 by an FP8
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
s | FP8 instance |
Multiplication of an FP2 by a small integer
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
s | integer |
Fast Squaring of an FP2
Kind: instance method of FP2
this: {FP2}
Full unconditional Multiplication of two FP2s
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
y | FP2 instance, the multiplier |
sqrt(a+ib) = sqrt(a+sqrt(aa-nbb)/2)+ib/(2sqrt(a+sqrt(aa-nb*b)/2))
Kind: instance method of FP2
Returns: true if this is QR
this: {FP2}
convert this to hex string
Kind: instance method of FP2
this: {FP2}
Inverting an FP2
Kind: instance method of FP2
this: {FP2}
Divide an FP2 by 2
Kind: instance method of FP2
this: {FP2}
Multiply an FP2 by sqrt(-1)
Kind: instance method of FP2
this: {FP2}
Multiply an FP2 by (1+sqrt(-1))
Kind: instance method of FP2
this: {FP2}
Divide an FP2 by (1+sqrt(-1))/2
Kind: instance method of FP2
this: {FP2}
Divide an FP2 by (1+sqrt(-1))
Kind: instance method of FP2
this: {FP2}
Raises an FP2 to the power of a BIG
Kind: instance method of FP2
this: {FP2}
Param | Description |
---|---|
e | BIG instance exponent |