in reply to CRC checking

Maybe Digest::CRC is doing what you need?

regards,
tomte


An intellectual is someone whose mind watches itself.
-- Albert Camus

Replies are listed 'Best First'.
Re^2: CRC checking
by tperdue (Sexton) on Jun 16, 2004 at 15:07 UTC
    I haven't checked out digest::crc. I'll have a look at that right now. Thanks.
Re^2: CRC checking
by tperdue (Sexton) on Jun 17, 2004 at 09:58 UTC
    I had a look at Digest::CRC and believe it will do what I want but documentation is very limited. Can you explain init, xorout, refin and refout? I understand the width and poly fields.

      A quick glance at the source suggests that they are flags/values indicating/used for:

      • refin
        reflect bitwise (mirror) the input before processing the message
      • refout
        reflect bitwise (mirror) the processed data before returning (hmmm, unless refin is set...)
      • xorout
        the output is XORed with this value prior to returning it
      • init
        is the initial crc value
      Update: (added init explanation) I suggest you take a closer look at the %_typedef hash!

      Edit: removed doubt-indicating questionmarks.

      HTH, regards,
      tomte


      An intellectual is someone whose mind watches itself.
      -- Albert Camus