Definition of EFq2 math.
More...
◆ EFq2Add()
Add two points in EFq2.
- Parameters
-
[out] | result | of adding left and right. |
[in] | left | The first operand to be added. |
[in] | right | The second operand to be added. |
◆ EFq2Dbl()
Double a point in EFq2.
- Parameters
-
[out] | result | target. |
[in] | in | the value to double. |
◆ EFq2Eq()
Test if two points on EFq2 are equal.
- Parameters
-
[in] | left | The first operand to be tested. |
[in] | right | The second operand to be tested. |
- Returns
- A value different from zero (i.e., true) if indeed the values are equal. Zero (i.e., false) otherwise.
◆ EFq2FromAffine()
Convert a point from Affine to Jacobi representation.
- Parameters
-
[out] | result | target. |
[in] | in | value to set. |
◆ EFq2IsInf()
Test if a point is infinity.
- Parameters
-
- Returns
- A value different from zero (i.e., true) indeed the value is infinity. Zero (i.e., false) otherwise.
◆ EFq2MulSSCM()
Multiply two points in EFq.
This function is mitigated against software side-channel attacks.
- Parameters
-
[out] | result | of multiplying left and right. |
[in] | left | The first operand to be multiplied. |
[in] | right | The second operand to be multiplied. |
◆ EFq2Neg()
Negate a point on EFq2.
- Parameters
-
[out] | result | the negative of the element. |
[in] | in | the element to negate. |
◆ EFq2OnCurve()
Test if a point is in EFq2.
- Parameters
-
- Returns
- A value different from zero (i.e., true) indeed the point is on the curve. Zero (i.e., false) otherwise.
◆ EFq2ToAffine()
Convert a point from Jacobi to Affine representation.
- Parameters
-
[out] | result | target. |
[in] | in | value to set. |
- Returns
- 1 on success, 0 on failure