File: crc32_jam.rb

package info (click to toggle)
ruby-digest-crc 0.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 912 kB
  • sloc: ansic: 2,136; ruby: 1,269; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'digest/crc32'

module Digest
  #
  # Implements the CRC32 Jam algorithm.
  #
  class CRC32Jam < CRC32

    INIT_XOR = 0xffffffff

    INIT_CRC = 0x0 ^ INIT_XOR

    XOR_MASK = 0x00000000

  end
end