SHA3_256ByteArray
Cryptography
Description
Computes the SHA3-256 digest of a byte array and returns it as a fixed-size TPLSHA256Digest value of 32 raw bytes. The hash runs through the built-in FIPS 202 Keccak implementation shared with the SHA-3 stream functions, using the SHA-3 domain suffix and a 136-byte rate; an empty array returns the digest of the empty message
Syntax
Delphi
Function SHA3_256ByteArray(Input: Array Of Byte): TPLSHA256Digest;Return values
The SHA3-256 digest as a TPLSHA256Digest array of 32 raw binary bytes, not hexadecimal text |
Remarks
TPLSHA256Digest is declared as Array [0..31] of Byte; the digest is produced first as a binary string and then copied into the typed array, and the same Keccak permutation serves SHA3_384ByteArray and SHA3_512ByteArray with different rates and output lengths
Example
Digest:= SHA3_256ByteArray(Data);See also
SHA256ByteArray, SHA384ByteArray, SHA512ByteArray, SHA3_384ByteArray, SHA3_512ByteArray, SHA1StreamRange, SHA256StreamRange, SHA384StreamRange, SHA512StreamRange, SHA3_256StreamRange, SHA3_384StreamRange, SHA3_512StreamRange, SHAKE256ByteArray, SHAKE256StreamRange