Blu-ray Content Hash Verifier


Content hash verifier is used to verify the integrity of Blu-ray M2TS files. It has two versions:

Feature

Principle

The content hash is a an 8-byte hash value of a 192 KB M2TS data block. For regular BD, the content hash is the lower 8 bytes of SHA1(M2TS_BLOCK); for 4K UHD is the lower 8 bytes of SHA256(M2TS_BLOCK).

The content hash in a Blu-ray is stored separately for each layer in /AACS/ContentHash000.tbl, /AACS/ContentHash001.tbl, /AACS/ContentHash002.tbl...

  1. Content hashes are generated only for .m2ts files that are greater than or equal to 1344 KB.
  2. If the last data block is not exactly 196 KB, this block will be omitted to create a content hash.
  3. The M2TS data involved in the calculation is the actual data stored on the disc.
    Because bus encryption is a software encryption set by the optical drive firmware, if bus encryption exists, it needs to be removed before calculating the hash value.