fixed encoding of checksum, updated crc24 check and added unit tests based on PGP keys