597 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
2
votes
3
replies
123
views
Reverse-engineering CRC checksum algorithm from an oracle
I have an embedded device that implements an unknown 32-bit CRC-based checksum algorithm in hardware. I can use this device as an oracle to generate checksum values from arbitrary input, and verify ...
1
vote
1
answer
229
views
Can't get 7-zip to work via vbscript to calculate a CRC32 for a file with spaces in the filename
I'm in need to generate a CRC32 efficiently from within vbScript. I'm aware of doing this with CRC32 tables and so on, but this is very slow for large files. Therefore I'm using 7-zip.exe with option ...
1
vote
0
answers
33
views
STM32H7 Hardware CRC mismatch with srec_cat generated CRC32 [duplicate]
I’m working on STM32H755 bootloader project where I need to verify the integrity of the application firmware using a CRC32 checksum.
The build system uses srec_cat to append the CRC32 at the end of ...
1
vote
2
answers
121
views
Jumping over n zeroes in a CRC calculation using clmul
Say I have two constant strings, both of with have their own pre-computed CRC, and I want to compute the CRC of the concatenation of those two strings.
Here's a naive implementation:
struct ...
sh1's user avatar
- 5,020
1
vote
1
answer
55
views
Redshift CRC32 producing different output than MySQL
Redshift's CRC32 function returns a string:
SELECT CRC32('abc');
> 364b3fb7
while MySQL returns an integer:
SELECT CRC32('abc');
> 891568578
From AWS docs:
The CRC32 function returns an 8-...
0
votes
0
answers
55
views
To generate CRC(MPEG2 algorithm) by using Srecord tool
I need to generate CRC (MPEG2 algorithm) on a hex file by using SRecord tool, I used below command:
srec_cat sample_final_CRC.hex -Bit_Reverse -CRC32LE 0x0000B000 -Bit_Reverse -XOR 0xff -crop ...
1
vote
1
answer
39
views
Why are the colors mixed up in this screenshot taken using Robot.js?
I'm using Robot.js to take screenshots (I don't really want to install any other heavy packages over 1 mb, but I'm already using Robot.js and no, Jimp isn't what I'm looking for). Since the ...
0
votes
1
answer
378
views
Accelerate CRC32b using intel processors
I have recently been studying the issue of CRC32 calculation acceleration, which is aimed at the type of CRC32b (polynomial 0x04C11DB7), but I found that the crc32 instructions in Intel's SSE4.2 are ...
0
votes
0
answers
108
views
Kafka CRC calculation
I ́m trying to generate a kafka producer message by native tcpip on .net, I have the message already done, but I ́m missing something on CRC calculation, I generate a CRC calculation with:
public ...
-1
votes
2
answers
151
views
Python CRC32 Reverse Hash e8b7be43 to string "a"
I am trying to reverse a hash into a sequence of bytes. The function is shown below.
def decrypt(hash, size):
bytes = bin(int(hash, 16)).replace("0b", "").zfill(32)
bytes = ...
0
votes
2
answers
188
views
Is it possible to make the linux cksum command zero out?
My goal is just to self-verify the consistency of a file without sending any additional files or signatures. I'd like to append a CRC at the end in a way that creates a predictable output from cksum ...
2
votes
1
answer
67
views
Can a CRC32 calculation be derived in terms of CRC16 calculations?
I need to calculate a 32-bit CRC but the microprocessor I am using only has a 16-bit CRC peripheral. Would it be possible to still use this 16-bit peripheral as part of my 32-bit calculations, and ...
0
votes
0
answers
103
views
Library to do crc32c hashing in React Native/Expo-go for GCS data integrity check?
I am sending some data from my react native app to store it on GCS bucket using signed url.
However, I don't want to risk writing my own implementation for crc32c hashing and making mistake. Is there ...
0
votes
1
answer
313
views
What is 'magic number' (0xdebb20e3) in pkzip's APPNOTE?
In section 4.4.7 (CRC-32) of APPNOTE.txt you can find
The 'magic number' for the CRC is 0xdebb20e3.
However, the regular polynomial (0x04C11DB7) of CRC-32 works fine. Bit-reflected, it is 0xEDB88320....
0
votes
3
answers
555
views
How to get the same CRC32 like cksum?
I took the source code of cksum and copied the polynomial. This gives the same as the predefined IEEE variant defined in the Go standard library.
package main
import (
"fmt"
"...