Definition of Fq6 math. More...
#include <stdint.h>
Functions | |
void | Fq6Add (Fq6Elem *result, Fq6Elem const *left, Fq6Elem const *right) |
Add two elements of Fq6. More... | |
void | Fq6Sub (Fq6Elem *result, Fq6Elem const *left, Fq6Elem const *right) |
Subtract two elements of Fq6. More... | |
void | Fq6Mul (Fq6Elem *result, Fq6Elem const *left, Fq6Elem const *right) |
Multiply two elements of Fq6. More... | |
void | Fq6Inv (Fq6Elem *result, Fq6Elem const *in) |
Invert an element of Fq6. More... | |
void | Fq6Neg (Fq6Elem *result, Fq6Elem const *in) |
Negate an element of Fq6. More... | |
void | Fq6Clear (Fq6Elem *result) |
Clear an element's value. More... | |
void | Fq6MulScalar (Fq6Elem *result, Fq6Elem const *in, Fq2Elem const *scalar) |
Multiply an element of Fq6 by and element of Fq2. More... | |
void | Fq6MulV (Fq6Elem *result, Fq6Elem const *in) |
Multiply an element of Fq6 by V. More... | |
int | Fq6Eq (Fq6Elem const *left, Fq6Elem const *right) |
Test if two elements in Fq6 are equal. More... | |
int | Fq6IsZero (Fq6Elem const *in) |
Test if an element is zero. More... | |
void | Fq6Square (Fq6Elem *result, Fq6Elem const *in) |
Square an element of Fq6. More... | |
void | Fq6Cp (Fq6Elem *result, Fq6Elem const *in) |
Copy an element's value. More... | |
void | Fq6CondSet (Fq6Elem *result, Fq6Elem const *true_val, Fq6Elem const *false_val, int truth_val) |
Conditionally Set an element's value to one of two values. More... | |
void | Fq6Set (Fq6Elem *result, uint32_t in) |
Set an element's value. More... | |
Definition of Fq6 math.
Add two elements of Fq6.
[out] | result | of adding left and right. |
[in] | left | The first operand to be added. |
[in] | right | The second operand to be added. |
void Fq6Clear | ( | Fq6Elem * | result | ) |
Clear an element's value.
[out] | result | element to clear. |
void Fq6CondSet | ( | Fq6Elem * | result, |
Fq6Elem const * | true_val, | ||
Fq6Elem const * | false_val, | ||
int | truth_val | ||
) |
Conditionally Set an element's value to one of two values.
[out] | result | target. |
[in] | true_val | value to set if condition is true. |
[in] | false_val | value to set if condition is false. |
[in] | truth_val | value of condition. |
Copy an element's value.
[out] | result | copy target. |
[in] | in | copy source. |
Test if two elements in Fq6 are equal.
[in] | left | The first operand to be tested. |
[in] | right | The second operand to be tested. |
Invert an element of Fq6.
[out] | result | the inverse of the element. |
[in] | in | the element to invert. |
int Fq6IsZero | ( | Fq6Elem const * | in | ) |
Test if an element is zero.
[in] | in | the element to test. |
Multiply two elements of Fq6.
[out] | result | of multiplying left and right. |
[in] | left | The first operand to be multiplied. |
[in] | right | The second operand to be multiplied. |
Multiply an element of Fq6 by and element of Fq2.
[out] | result | of multiplying left and right. |
[in] | in | The first operand to be multiplied. |
[in] | scalar | The second operand to be multiplied. |
Multiply an element of Fq6 by V.
This function was formerly called as Fq2Const.
[out] | result | of multiplying in and V. |
[in] | in | The first operand to be multiplied. |
Negate an element of Fq6.
[out] | result | the negative of the element. |
[in] | in | the element to negate. |
void Fq6Set | ( | Fq6Elem * | result, |
uint32_t | in | ||
) |
Set an element's value.
[out] | result | target. |
[in] | in | value to set. |
Square an element of Fq6.
[out] | result | the square of the element. |
[in] | in | the element to square. |