SHAKE256StreamRange
Cryptography
Description
Computes the SHAKE256 digest over two byte ranges of a stream
Syntax
Delphi
Function SHAKE256StreamRange(OutputBytes: Integer; Input: TStream; FirstLength, SecondStart, SecondLength: Int64): AnsiString;Return values
| The OutputBytes digest bytes, or an empty string when the stream is nil, a range is negative, a read comes up short, or OutputBytes is outside 1..64 |
Remarks
Absorbs the first FirstLength bytes followed by the SecondLength bytes starting at SecondStart, matching the signature byte-range layout where a hole must be skipped. Use 0 for any unused segment.
Example
Digest:= SHAKE256StreamRange(32, FS, ByteRange[0], ByteRange[2], ByteRange[3]);