PLSM2HexToValue

Cryptography

Description

Parses a big-endian hexadecimal scalar into the limb record TP LSM2Int used by the SM2 arithmetic core

Syntax

Delphi

Procedure PLSM2HexToValue(Const Hex: AnsiString; Out V: TPLSM2Int);

Parameters

HexHexadecimal digits, most significant byte first
VReceives the 256-bit value

Remarks

Part of the pure-Pascal SM2 suite (GB/T 32918) covering 256-bit prime-field arithmetic, Jacobian point operations and the SM3-based ZA derivation; the recommended sm2p256v1 curve ships as the SM2P256V1 constant and the specification appendix curve as SM2ExampleCurve

Counterpart of PLSM2IntToBE32; mirrors the Brainpool hex helpers

See also

PLSM2IntToBE32, PLSM2BE32ToInt, BPFromHex, BPToHex