code: public static byte calc(byte[] data, int len) {
          byte crc = 0;
  
          for (int i = 0; i < len; i++)
              crc = CRC8_TABLE[(crc ^ data[i]) & 0xff];
  
          return crc;
      }
docs: Calculate the CRC value with data from a byte array.
  
  @param data  The byte array
  @param len   The byte array length
  @return      The calculated CRC value