PLSM2PointMul

Cryptography

Description

Multiplies an affine SM2 point by a scalar, computing the affine product [K](Px, Py)

Syntax

Delphi

Function PLSM2PointMul(Const Curve: TPLSM2Curve; Const K, Px, Py: TPLSM2Int;
  Out Rx, Ry: TPLSM2Int): Boolean;

Parameters

CurveThe SM2 domain parameters
KThe scalar multiplier; must not be zero
Px, PyThe affine point being multiplied; must be on the curve
Rx, RyReceive the affine product; zeroed on failure

Return values

TrueThe product was computed and normalised
FalseThe point is not on the curve or K is zero

The affine primitive behind PLSM2PublicKeyFromPrivate and PLSM2ComputeZA key agreement

See also

PLSM2PointOnCurve, PLSM2PublicKeyFromPrivate, PLSM2ComputeZA