Line 48:
Line 48:
The checksums in the blockmap/journal entries work as follows:
The checksums in the blockmap/journal entries work as follows:
−
* each byte is the checksum of a 0x200 bytes block
+
* each byte is the checksum of an encrypted 0x200 bytes large block
* to calculate the checksum, a CRC16 of the block (with starting value 0xFFFF) is calculated, and the two bytes of the CRC16 are XORed together to produce the 8bit checksum
* to calculate the checksum, a CRC16 of the block (with starting value 0xFFFF) is calculated, and the two bytes of the CRC16 are XORed together to produce the 8bit checksum