SHA3_384ByteArray

Cryptography

Description

Computes the SHA3-384 digest of a byte array and returns it as a fixed-size TPLSHA384Digest value of 48 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 104-byte rate; an empty array returns the digest of the empty message

Syntax

Delphi

Function SHA3_384ByteArray(Input: Array Of Byte): TPLSHA384Digest;

Return values

The SHA3-384 digest as a TPLSHA384Digest array of 48 raw binary bytes, not hexadecimal text

Remarks

TPLSHA384Digest is declared as Array [0..47] of Byte; the digest is produced first as a binary string and then copied into the typed array, and the rate shrinks to 104 bytes because the Keccak rate is 200 minus twice the output length

Example

Digest:= SHA3_384ByteArray(Data);

See also

SHA256ByteArray, SHA384ByteArray, SHA512ByteArray, SHA3_256ByteArray, SHA3_512ByteArray, SHA1StreamRange, SHA256StreamRange, SHA384StreamRange, SHA512StreamRange, SHA3_256StreamRange, SHA3_384StreamRange, SHA3_512StreamRange, SHAKE256ByteArray, SHAKE256StreamRange