StephenCleary / HashAlgorithms

CRC calculation for .NET
MIT License
23 stars 4 forks source link

CRC16 Modbus #2

Open tinohager opened 1 year ago

tinohager commented 1 year ago

Hi, i just fell over a new CRC16 Modbus variant which is still missing here maybe you could add it.

var defaultHasher = new Nito.HashAlgorithms.CRC16(new CRC16.Definition
{
    TruncatedPolynomial = 0x8005,
    Initializer = 0xFFFF,
    ReverseDataBytes = true,
    ReverseResultBeforeFinalXor = true,
});
StephenCleary commented 1 year ago

Thanks!