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
| Curve | The SM2 domain parameters |
|---|---|
| K | The scalar multiplier; must not be zero |
| Px, Py | The affine point being multiplied; must be on the curve |
| Rx, Ry | Receive the affine product; zeroed on failure |
Return values
| True | The product was computed and normalised |
|---|---|
| False | The point is not on the curve or K is zero |
The affine primitive behind PLSM2PublicKeyFromPrivate and PLSM2ComputeZA key agreement
See also
PLSM2PointOnCurve, PLSM2PublicKeyFromPrivate, PLSM2ComputeZA