SM3ByteArray

Cryptography

Description

Computes the SM3 message digest (GB/T 32905-2016) of a raw byte array

The result is the raw 32-byte digest packed one byte per character, not hexadecimal text

Syntax

Delphi

Function SM3ByteArray(Const Input: Array Of Byte): AnsiString;

Parameters

InputRaw bytes to hash

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

See also

SM3String, SM3StreamRange, SHA256ByteArray, PLSM2ComputeZA