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
| Hex | Hexadecimal digits, most significant byte first |
|---|---|
| V | Receives 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