/** * CRC32 * * @param math.BigInt key * @param int char * @return math.BigInt updated checksum */ protected function crc32($key, $char) { $l = new BigInt(self::$crc32[$key->bitwiseXor($char)->byteValue()]); return new BigInt($l->bitwiseXor($key->shiftRight(8))); }