p + q.geAdd
private fn
Ge25519 geAdd(scope const ref Ge25519 p, scope const ref Ge25519 q) nothrow @trusted @nogcUnified twisted-Edwards point addition (and doubling).
The add-2008-hwcd construction with a = -1; because -1 is a square and d is a non-square modulo 2^255 - 19, the formula is complete: it computes the correct sum for every pair of inputs, including equal and opposite points and the neutral element, so no input-dependent case handling exists.
Parameters
p | First addend. |
q | Second addend. |
Returns
The sum