function CRC8(const Buffer;const Size:Integer):UInt8;
var
CRC : IHash;
begin
if @Buffer=nil then Exit(0);
CRC := THashFactory.TChecksum.TCRC.CreateCRC(HlpCRC.CRC8);
Result := CRC.ComputeUntyped(Buffer,Size).GetUInt8;
end;
Exception class EInvalidOperationHashLibException with message 'The size of the byte array (2) and integer type (1) have to match.'.
Invoking this function generated an exception:
Exception class EInvalidOperationHashLibException with message 'The size of the byte array (2) and integer type (1) have to match.'.
Best regards.