crc

Combining two non-pure CRC values

Combining two non-pure CRC values Question: Based on this answer I understand principle behind combining CRC values of two blocks, given the fact that CRC of string of zeros is 0 and using linearity property. But in practice most implementations seed the register with some initial value and complement the final result to deal with …

Total answers: 1

Python crc_hqx(data, value) proper implementation

Python crc_hqx(data, value) proper implementation Question: Solved! Thank you rcgdlr. I am just learning about CRCs and am unsure my implementation is correct. I have a number of questions: Do I include the crc in the data portion (I believe I do but I’m unsure; could it depend on the implementation)? bytes_trans = cmd_in[5:-2] # …

Total answers: 1

Make CRC on stm32 match with software implementation

Make CRC on stm32 match with software implementation Question: Upd. See the end of post for working code I’m already mad with this. How can I make checksum from CRC unit on stm32f103 match with software implementation? Stm has polynom 0x04C11DB7 and reset value 0xFFFFFFFF. So I’ve tried to calculate it in python. Code for …

Total answers: 2

CRC-CCITT 16-bit Python Manual Calculation

CRC-CCITT 16-bit Python Manual Calculation Question: Problem I am writing code for an embedded device. A lot of solutions out there for CRC-CCITT 16-bit calculations require libraries. Given that using libraries is almost impossible and a drain on its resources, a function is required. Possible Solution The following CRC calculation was found online. However, its …

Total answers: 8

Calculate/validate bz2 (bzip2) CRC32 in Python

Calculate/validate bz2 (bzip2) CRC32 in Python Question: I’m trying to calculate/validate the CRC32 checksums for compressed bzip2 archives. .magic:16 = ‘BZ’ signature/magic number .version:8 = ‘h’ for Bzip2 (‘H’uffman coding) .hundred_k_blocksize:8 = ‘1’..’9′ block-size 100 kB-900 kB .compressed_magic:48 = 0x314159265359 (BCD (pi)) .crc:32 = checksum for this block … … .eos_magic:48 = 0x177245385090 (BCD sqrt(pi)) …

Total answers: 3