code: private boolean computeSyndrome(int[] data, int [] syndrome) {
      boolean corruptionFound = false;
      for (int i = 0; i < paritySize; i++) {
        syndrome[i] = GF.substitute(data, primitivePower[i]);
        if (syndrome[i] != 0) {
          corruptionFound = true;
        }
      }
      return !corruptionFound;
    }
docs: Compute the syndrome of the input [parity, message]
  @param data [parity, message]
  @param syndrome The syndromes (checksums) of the data
  @return true If syndromes are all zeros