Here you can find the source of crc321(byte[] buf, int off, int len)
public static int crc321(byte[] buf, int off, int len)
//package com.java2s; public class Main { public static int crc321(byte[] buf, int off, int len) { int crc = 0xffffffff; while (len-- != 0) { crc ^= buf[off++] & 0xFF; for (int i = 0; i < 8; i++) { if ((crc & 1) == 1) { crc >>>= 1; crc ^= 0xEDB88320;/*from w w w . jav a 2s .c o m*/ } else crc >>>= 1; } } return crc; } }