Kind: global class
this: {FP12}
Creates an instance of FP12.
Reduces all components of possibly unreduced FP12 mod Modulus
Kind: instance method of FP12
this: {FP12}
Normalises the components of an FP12
Kind: instance method of FP12
this: {FP12}
Tests for FP12 equal to zero
Kind: instance method of FP12
this: {FP12}
Tests for FP12 equal to unity
Kind: instance method of FP12
this: {FP12}
Conditional copy of FP12 number
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
g | FP12 instance |
d | copy depends on this value |
Constant time select from pre-computed table
Kind: instance method of FP12
this: {FP12}
extract a from this
Kind: instance method of FP12
this: {FP12}
extract b from this
Kind: instance method of FP12
this: {FP12}
extract c from this
Kind: instance method of FP12
this: {FP12}
Tests for equality of two FP12s
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
x | FP12 instance to compare |
Copy FP12 to another FP12
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
x | FP12 instance to be copied |
Set FP12 to unity
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
x | FP12 instance to be set to one |
Set FP12 to zero
Kind: instance method of FP12
this: {FP12}
Conjugation of FP12
Kind: instance method of FP12
this: {FP12}
Set FP12 from three FP4 values
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
d | FP4 instance |
e | FP4 instance |
f | FP4 instance |
Set FP12 from one FP4 value
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
d | FP4 instance |
Fast Squaring of an FP12 in “unitary” form
Kind: instance method of FP12
this: {FP12}
Fast Squaring of an FP12
Kind: instance method of FP12
this: {FP12}
Full unconditional Multiplication of two FP12s
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
y | FP12 instance, the multiplier |
Fast multiplication of two sparse FP12s that arises from ATE pairing line functions
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
y | FP12 instance, the multiplier |
Fast multiplication of what may be sparse multiplicands
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
y | FP12 instance, the multiplier |
Inverting an FP12
Kind: instance method of FP12
this: {FP12}
Raises an FP12 to the power of the internal modulus p, using the Frobenius
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
f | Modulus |
Calculate the trace of an FP12
Kind: instance method of FP12
this: {FP12}
convert this to hex string
Kind: instance method of FP12
this: {FP12}
convert this to byte array
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
w | Byte array |
Raises an FP12 to the power of a BIG
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
e | BIG instance exponent |
Raises an FP12 instance x to a small integer power, side-channel resistant
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
e | small integer exponent |
bts | maximum number of bits in exponent |
Raises an FP12 instance to a BIG power, compressed to FP4
Kind: instance method of FP12
this: {FP12}
Param | Description |
---|---|
e | BIG exponent |
r | BIG group order |
convert from byte array to FP12
Kind: static method of FP12
this: {FP12}
Param | Description |
---|---|
w | Byte array |
return 1 if b==c, no branching
Kind: static method of FP12
this: {FP12}
p=q0^u0.q1^u1.q2^u2.q3^u3
Kind: static method of FP12
this: {FP12}