MartinScharrer / crccheck

The crccheck python module implements all CRCs listed in the Catalogue of parametrised CRC algorithms as well as simple checksums.
MIT License
15 stars 4 forks source link

Collection of functions #5

Open mrx23dot opened 10 hours ago

mrx23dot commented 10 hours ago

So we could get an up-to-date list of what's included in the library, and we could iterate over all if we are searching for the checksum for given data e.g.

crccheck.functions = [
  # class, length
  (Checksum8, 8),  
  (Checksum16, 16),
  (Crc12Gsm, 12),
]

class._names already contains name, so that's not needed,

although not every class e.g. ChecksumXor16

mrx23dot commented 9 hours ago

found ALLCRCCLASSES for crcs.

But items in ALLCHECKSUMCLASSES don't have i._names set.