FK20 CUDA
|
Go to the source code of this file.
Functions | |
__device__ bool | g1p_isInf (const g1p_t &p) |
Check if the value stored in p is the the/any point at infinity. This implementation uses (0, 1, 0) as the point at infinity. Alternatively, the macro G1P_ANYINF allows the point at infinity to be represented as (0, y, 0) where y!=0. More... | |
__device__ bool | g1p_isPoint (const g1p_t &p) |
Check if the value stored in p is a valid point on the G1 curve. More... | |
__device__ bool g1p_isInf | ( | const g1p_t & | p | ) |
Check if the value stored in p is the the/any point at infinity. This implementation uses (0, 1, 0) as the point at infinity. Alternatively, the macro G1P_ANYINF allows the point at infinity to be represented as (0, y, 0) where y!=0.
The algebra used in this library sets the point at infinity to (0, 1, 0) (or (0, y, 0)), instead of the usual (1, 1, 0) used in other libs, due to following the Algorithm 7 in eprint 2015-1060.
[in] | p |
Definition at line 20 of file g1p_ispoint.cu.
__device__ bool g1p_isPoint | ( | const g1p_t & | p | ) |
Check if the value stored in p is a valid point on the G1 curve.
[in] | p |
Definition at line 34 of file g1p_ispoint.cu.