I managed extracted a single sector from a cd-rom bin file using a hex editor. According to cd-rom specifications the sector should have the following format: * 16 bytes for synchronization and header * 8 bytes for the sub-header * 2048 bytes for user data * 4 bytes for the EDC which happens to be a CRC32 applied to user data and sub-header.
I found detailed information on this matter on page 55 of the following document: https://ia800408.us.archive.org/4/items/cdi_may94_r2/cdi_may94_r2.pdf
I want to manually modify user data in the sector, but in order to do that I must recalculate the EDC as well. (I assume ECC is ignored if EDC results are positive)
However, before modifying anything I want to check that I agree with my sector on the given CRC32. But, I can't. And that's the problem.
Here is my 2352 byte sector: https://drive.google.com/open?id=1CYAInG8TYMyRMOgR1zeooUrLK5CR7cmM
The EDC section has the following CRC32 result: 92 54 48 44 (hex)
But when I recalculate the CRC32 myself using HxD hex-editor I get: 55 32 CA 62
Why am I getting a different result? I tried changing input/output reflection in the custom CRC32 section, but nothing works. I've been stuck on this for an hour and couldn't find anything on google.