I think I've successfully retrieved the checksum from a pkm file.
Refactored code that loads binary data and calculates checksum.