CRC - Generic CRC functions


NAME

CRC - Generic CRC functions


SYNOPSIS

  use CRC;
  $crc = crc32("123456789");
  $crc = crc16("123456789");
  $crc = crcccitt("123456789");
  $crc = crc($input,$width,$init,$xorout,$poly,$refin,$refout);


DESCRIPTION

The CRC module calculates CRC sums of all sorts. It contains wrapper functions with the correct parameters for CRC-CCITT, CRC-16 and CRC-32.


AUTHOR

Oliver Maul, oli@42.nu


COPYRIGHT

CRC algorithm code taken from ``A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS''.

The author of this package disclaims all copyrights and releases it into the public domain.

 CRC - Generic CRC functions