PLSM2PointMul

Criptografía

Descripción

Multiplica un punto afín SM2 por un escalar, calculando el producto afín [K](Px, Py)

Sintaxis

Delphi

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

Parámetros

CurveLos parámetros de dominio SM2
KEl multiplicador escalar; no debe ser cero
Px, PyEl punto afín que se multiplica; debe estar en la curva
Rx, RyReciben el producto afín; se ponen a cero si falla

Valores devueltos

TrueEl producto se calculó y normalizó
FalseEl punto no está en la curva o K es cero

El primitivo afín detrás de PLSM2PublicKeyFromPrivate y del acuerdo de claves de PLSM2ComputeZA

Véase también

PLSM2PointOnCurve, PLSM2PublicKeyFromPrivate, PLSM2ComputeZA