SM3String
Cryptography
Description
Computes the SM3 message digest (GB/T 32905-2016) of an AnsiString
The result is the raw 32-byte digest packed one byte per character, not hexadecimal text
Syntax
Delphi
Function SM3String(Const Input: AnsiString): AnsiString;Parameters
| Input | Bytes to hash; the AnsiString length is the input length |
|---|
Return values
The raw 32-byte SM3 digest in an AnsiString |
Remarks
Part of the pure-Pascal SM3 digest (GB/T 32905-2016) that also backs the SM2 signing path; the implementation passes the standard test vectors
Digest code 8 selects SM3 for PAdES signature timestamp hashing and document timestamp token requests through SetSignProcessDigestAlgorithm
See also
SM3ByteArray, SM3StreamRange, SHA256ByteArray, SetSignProcessDigestAlgorithm