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
| Curve | Los parámetros de dominio SM2 |
|---|---|
| K | El multiplicador escalar; no debe ser cero |
| Px, Py | El punto afín que se multiplica; debe estar en la curva |
| Rx, Ry | Reciben el producto afín; se ponen a cero si falla |
Valores devueltos
| True | El producto se calculó y normalizó |
|---|---|
| False | El 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