Checksum is calculated upon bytes directly instead of encoding it twice.