geAdd

private fnGe25519 geAdd(scope const ref Ge25519 p, scope const ref Ge25519 q) nothrow @trusted @nogc

Unified 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

pFirst addend.
qSecond addend.

Returns

The sum p + q.