CRC models

This is a list of special CRC model names pycrc knows about. If you can't find your model here, have a look at Greg Cook's catalogue of parametrised CRC Algorithms.

crc-5

Width5
Poly0x5
Reflect InTrue
XOR In0x1f
Reflect OutTrue
XOR Out0x1f
Short commandpycrc.py --model crc-5
Extended commandpycrc.py --width 5 --poly 0x5 --reflect-in True --xor-in 0x1f --reflect-out True --xor-out 0x1f
Check0x19

crc-8

Width8
Poly0x07
Reflect InFalse
XOR In0x00
Reflect OutFalse
XOR Out0x00
Short commandpycrc.py --model crc-8
Extended commandpycrc.py --width 8 --poly 0x07 --reflect-in False --xor-in 0x00 --reflect-out False --xor-out 0x00
Check0xf4

dallas-1-wire

Width8
Poly0x31
Reflect InTrue
XOR In0x00
Reflect OutTrue
XOR Out0x00
Short commandpycrc.py --model dallas-1-wire
Extended commandpycrc.py --width 8 --poly 0x31 --reflect-in True --xor-in 0x00 --reflect-out True --xor-out 0x00
Check0xa1

crc-12-3gpp

Width12
Poly0x80f
Reflect InFalse
XOR In0x000
Reflect OutTrue
XOR Out0x000
Short commandpycrc.py --model crc-12-3gpp
Extended commandpycrc.py --width 12 --poly 0x80f --reflect-in False --xor-in 0x000 --reflect-out True --xor-out 0x000
Check0xdaf

crc-15

Width15
Poly0x4599
Reflect InFalse
XOR In0x000
Reflect OutFalse
XOR Out0x000
Short commandpycrc.py --model crc-15
Extended commandpycrc.py --width 15 --poly 0x4599 --reflect-in False --xor-in 0x000 --reflect-out False --xor-out 0x000
Check0x59e

crc-16

Width16
Poly0x8005
Reflect InTrue
XOR In0x0000
Reflect OutTrue
XOR Out0x0000
Short commandpycrc.py --model crc-16
Extended commandpycrc.py --width 16 --poly 0x8005 --reflect-in True --xor-in 0x0000 --reflect-out True --xor-out 0x0000
Check0xbb3d

crc-16-usb

Width16
Poly0x8005
Reflect InTrue
XOR In0xffff
Reflect OutTrue
XOR Out0xffff
Short commandpycrc.py --model crc-16-usb
Extended commandpycrc.py --width 16 --poly 0x8005 --reflect-in True --xor-in 0xffff --reflect-out True --xor-out 0xffff
Check0xb4c8

crc-16-modbus

Width16
Poly0x8005
Reflect InTrue
XOR In0xffff
Reflect OutTrue
XOR Out0x0000
Short commandpycrc.py --model crc-16-modbus
Extended commandpycrc.py --width 16 --poly 0x8005 --reflect-in True --xor-in 0xffff --reflect-out True --xor-out 0x0000
Check0x4b37

crc-16-genibus

Width16
Poly0x1021
Reflect InFalse
XOR In0xffff
Reflect OutFalse
XOR Out0xffff
Short commandpycrc.py --model crc-16-genibus
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in False --xor-in 0xffff --reflect-out False --xor-out 0xffff
Check0xd64e

crc-16-ccitt

Width16
Poly0x1021
Reflect InFalse
XOR In0x1d0f
Reflect OutFalse
XOR Out0x0000
Short commandpycrc.py --model crc-16-ccitt
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in False --xor-in 0x1d0f --reflect-out False --xor-out 0x0000
Check0xe5cc

r-crc-16

Width16
Poly0x0589
Reflect InFalse
XOR In0x0000
Reflect OutFalse
XOR Out0x0001
Short commandpycrc.py --model r-crc-16
Extended commandpycrc.py --width 16 --poly 0x0589 --reflect-in False --xor-in 0x0000 --reflect-out False --xor-out 0x0001
Check0x007e

kermit

Width16
Poly0x1021
Reflect InTrue
XOR In0x0000
Reflect OutTrue
XOR Out0x0000
Short commandpycrc.py --model kermit
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in True --xor-in 0x0000 --reflect-out True --xor-out 0x0000
Check0x2189

x-25

Width16
Poly0x1021
Reflect InTrue
XOR In0xffff
Reflect OutTrue
XOR Out0xffff
Short commandpycrc.py --model x-25
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in True --xor-in 0xffff --reflect-out True --xor-out 0xffff
Check0x906e

xmodem

Width16
Poly0x1021
Reflect InFalse
XOR In0x0000
Reflect OutFalse
XOR Out0x0000
Short commandpycrc.py --model xmodem
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in False --xor-in 0x0000 --reflect-out False --xor-out 0x0000
Check0x31c3

zmodem

Width16
Poly0x1021
Reflect InFalse
XOR In0x0000
Reflect OutFalse
XOR Out0x0000
Short commandpycrc.py --model zmodem
Extended commandpycrc.py --width 16 --poly 0x1021 --reflect-in False --xor-in 0x0000 --reflect-out False --xor-out 0x0000
Check0x31c3

crc-24

Width24
Poly0x864cfb
Reflect InFalse
XOR In0xb704ce
Reflect OutFalse
XOR Out0x000000
Short commandpycrc.py --model crc-24
Extended commandpycrc.py --width 24 --poly 0x864cfb --reflect-in False --xor-in 0xb704ce --reflect-out False --xor-out 0x000000
Check0x21cf02

crc-32

Width32
Poly0x04c11db7
Reflect InTrue
XOR In0xffffffff
Reflect OutTrue
XOR Out0xffffffff
Short commandpycrc.py --model crc-32
Extended commandpycrc.py --width 32 --poly 0x04c11db7 --reflect-in True --xor-in 0xffffffff --reflect-out True --xor-out 0xffffffff
Check0xcbf43926

crc-32c

Width32
Poly0x1edc6f41
Reflect InTrue
XOR In0xffffffff
Reflect OutTrue
XOR Out0xffffffff
Short commandpycrc.py --model crc-32c
Extended commandpycrc.py --width 32 --poly 0x1edc6f41 --reflect-in True --xor-in 0xffffffff --reflect-out True --xor-out 0xffffffff
Check0xe3069283

crc-32-mpeg

Width32
Poly0x04c11db7
Reflect InFalse
XOR In0xffffffff
Reflect OutFalse
XOR Out0x00000000
Short commandpycrc.py --model crc-32-mpeg
Extended commandpycrc.py --width 32 --poly 0x04c11db7 --reflect-in False --xor-in 0xffffffff --reflect-out False --xor-out 0x00000000
Check0x0376e6e7

crc-32-bzip2

Width32
Poly0x04c11db7
Reflect InFalse
XOR In0xffffffff
Reflect OutFalse
XOR Out0xffffffff
Short commandpycrc.py --model crc-32-bzip2
Extended commandpycrc.py --width 32 --poly 0x04c11db7 --reflect-in False --xor-in 0xffffffff --reflect-out False --xor-out 0xffffffff
Check0xfc891918

posix

Width32
Poly0x04c11db7
Reflect InFalse
XOR In0x00000000
Reflect OutFalse
XOR Out0xffffffff
Short commandpycrc.py --model posix
Extended commandpycrc.py --width 32 --poly 0x04c11db7 --reflect-in False --xor-in 0x00000000 --reflect-out False --xor-out 0xffffffff
Check0x765e7680

jam

Width32
Poly0x04c11db7
Reflect InTrue
XOR In0xffffffff
Reflect OutTrue
XOR Out0x00000000
Short commandpycrc.py --model jam
Extended commandpycrc.py --width 32 --poly 0x04c11db7 --reflect-in True --xor-in 0xffffffff --reflect-out True --xor-out 0x00000000
Check0x340bc6d9

xfer

Width32
Poly0x000000af
Reflect InFalse
XOR In0x00000000
Reflect OutFalse
XOR Out0x00000000
Short commandpycrc.py --model xfer
Extended commandpycrc.py --width 32 --poly 0x000000af --reflect-in False --xor-in 0x00000000 --reflect-out False --xor-out 0x00000000
Check0xbd0be338

crc-64

Width64
Poly0x000000000000001b
Reflect InTrue
XOR In0x0000000000000000
Reflect OutTrue
XOR Out0x0000000000000000
Short commandpycrc.py --model crc-64
Extended commandpycrc.py --width 64 --poly 0x000000000000001b --reflect-in True --xor-in 0x0000000000000000 --reflect-out True --xor-out 0x0000000000000000
Check0x46a5a9388a5beffe

crc-64-jones

Width64
Poly0xad93d23594c935a9
Reflect InTrue
XOR In0xffffffffffffffff
Reflect OutTrue
XOR Out0x0000000000000000
Short commandpycrc.py --model crc-64-jones
Extended commandpycrc.py --width 64 --poly 0xad93d23594c935a9 --reflect-in True --xor-in 0xffffffffffffffff --reflect-out True --xor-out 0x0000000000000000
Check0xcaa717168609f281

crc-64-xz

Width64
Poly0x42f0e1eba9ea3693
Reflect InTrue
XOR In0xffffffffffffffff
Reflect OutTrue
XOR Out0xffffffffffffffff
Short commandpycrc.py --model crc-64-xz
Extended commandpycrc.py --width 64 --poly 0x42f0e1eba9ea3693 --reflect-in True --xor-in 0xffffffffffffffff --reflect-out True --xor-out 0xffffffffffffffff
Check0x995dc9bbdf1939fa