Here you can find the source of crc320(byte[] buf, int off, int len)
public final static int crc320(byte[] buf, int off, int len)
//package com.java2s; public class Main { private static int[] crc_t; public final static int crc320(byte[] buf, int off, int len) { return update(buf, off, len) ^ 0xFFFFFFFF; }//from w ww. jav a 2 s. co m private final static int update(byte[] buf, int off, int len) { int c = 0xFFFFFFFF; int n; if (crc_t == null) mk(); for (n = off; n < len + off; n++) { c = crc_t[(c ^ buf[n]) & 0xFF] ^ (c >>> 8); } return c; } private final static void mk() { int c, k; if (crc_t == null) crc_t = new int[256]; for (int n = 0; n < 256; n++) { c = n; for (k = 0; k < 8; k++) c = (c & 1) == 1 ? 0xEDB88320 ^ (c >>> 1) : c >>> 1; crc_t[n] = c; } } }