SHA3_512ByteArray
Cryptography
Description
Computes the SHA3-512 digest of a byte array and returns it as a fixed-size TPLSHA512Digest value of 64 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 72-byte rate; an empty array returns the digest of the empty message
Syntax
Delphi
Function SHA3_512ByteArray(Input: Array Of Byte): TPLSHA512Digest;Return values
The SHA3-512 digest as a TPLSHA512Digest array of 64 raw binary bytes, not hexadecimal text |
Remarks
TPLSHA512Digest is declared as Array [0..63] of Byte; the digest is produced first as a binary string and then copied into the typed array, and the rate shrinks to 72 bytes because the Keccak rate is 200 minus twice the output length
Example
Digest:= SHA3_512ByteArray(Data);See also
SHA256ByteArray, SHA384ByteArray, SHA512ByteArray, SHA3_256ByteArray, SHA3_384ByteArray, SHA1StreamRange, SHA256StreamRange, SHA384StreamRange, SHA512StreamRange, SHA3_256StreamRange, SHA3_384StreamRange, SHA3_512StreamRange, SHAKE256ByteArray, SHAKE256StreamRange