Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiDiscreteLogField.IsNonTrivialFieldElement

function IsNonTrivialFieldElement(const aElement: iGroupElement) : Boolean;
True when aElement is not a trivial/degenerate value: for EC, any point that is not the point at infinity (on the matching curve); for finite-field groups, an element that is not 1, not the generator, and not P-1. Public-key validation calls this to reject degenerate peer values before using them. Note this does NOT by itself verify the point lies on the curve or in the prime-order subgroup -- combine it with IsGroupElement for that.