Would not work with CRCccitt You are setting `xor` as `""` in setCRCccitt and then raising an exception in compute when `xor` is empty. You would get an `Invalid Parameters` exception