PLSM2PointOnCurve

Cryptography

Description

Checks that an affine point lies on the standard SM2 curve

Syntax

Delphi

Function PLSM2PointOnCurve(Const Curve: TPLSM2Curve; Const X, Y: TPLSM2Int): Boolean;

Parameters

CurveThe SM2 domain parameters
X, YThe affine coordinates to test

Return values

TrueThe point satisfies the curve equation
FalseThe point is not on the curve

Part of the pure-Pascal SM2 implementation (GB/T 3295); used to validate public keys and peer points before scalar multiplication

See also

PLSM2PointMul, PLSM2ComputeZA, PLSM2Verify