Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CRC checking

by Tomte (Priest)
on Jun 16, 2004 at 14:16 UTC ( [id://367248]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://367248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-24 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found