Kind: global class
this: {FP4}
Creates an instance of FP4
Reduces all components of possibly unreduced FP4 mod Modulus
Kind: instance method of FP4
this: {FP4}
Normalises the components of an FP4
Kind: instance method of FP4
this: {FP4}
Tests for FP4 equal to zero
Kind: instance method of FP4
this: {FP4}
Tests for FP4 equal to unity
Kind: instance method of FP4
this: {FP4}
Conditional copy of FP4 number
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
g | FP4 instance |
d | copy depends on this value |
test is w real? That is in a+ib test b is zero
Kind: instance method of FP4
this: {FP4}
extract real part a
Kind: instance method of FP4
this: {FP4}
extract a from this
Kind: instance method of FP4
this: {FP4}
extract b from this
Kind: instance method of FP4
this: {FP4}
Tests for equality of two FP4s
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
x | FP4 instance to compare |
Copy FP4 to another FP4
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
x | FP4 instance to be copied |
Set FP4 to zero
Kind: instance method of FP4
this: {FP4}
Set FP4 to unity
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
x | FP4 instance to be set to one |
Set FP4 from two FP2 values
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
c | FP2 instance |
d | FP2 instance |
Set FP4 from one FP2 value
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
c | FP2 instance |
Negation of FP4
Kind: instance method of FP4
this: {FP4}
Conjugation of FP4
Kind: instance method of FP4
this: {FP4}
Negative conjugation of FP4
Kind: instance method of FP4
this: {FP4}
addition of two FP4s
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
x | FP4 instance |
subtraction of two FP4s
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
x | FP4 instance |
Multiplication of an FP4 by an FP8
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
s | FP8 instance |
Multiplication of an FP4 by an integer
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
s | integer multiplier |
Fast Squaring of an FP4
Kind: instance method of FP4
this: {FP4}
Full unconditional Multiplication of two FP4s
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
y | FP4 instance, the multiplier |
convert to hex string
Kind: instance method of FP4
this: {FP4}
Inverting an FP4
Kind: instance method of FP4
this: {FP4}
multiplies an FP4 instance by irreducible polynomial sqrt(1+sqrt(-1))
Kind: instance method of FP4
this: {FP4}
Raises an FP4 to the power of the internal modulus p, using the Frobenius
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
f | Modulus |
Raises an FP4 to the power of a BIG
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
e | BIG instance exponent |
Calculates the XTR addition function r=w*x-conj(x)*y+z
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
w | FP4 instance |
y | FP4 instance |
z | FP4 instance |
Calculates the XTR doubling function r=x^2-2*conj(x)
Kind: instance method of FP4
this: {FP4}
Calculates FP4 trace of an FP4 raised to the power of a BIG number
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
n | Big number |
Calculates FP4 trace of c^a.d^b, where c and d are derived from FP4 traces of FP4s
Kind: instance method of FP4
this: {FP4}
Divide an FP4 by 2
Kind: instance method of FP4
this: {FP4}
Divide FP4 number by QNR
Kind: instance method of FP4
this: {FP4}
Divide an FP4 by QNR/2
Kind: instance method of FP4
this: {FP4}
Multiplication of an FP4 by an FP
Kind: instance method of FP4
this: {FP4}
Param | Description |
---|---|
s | FP multiplier |
Calculate square root of an FP4
Kind: instance method of FP4
this: {FP4}