/openjdk7/jdk/src/share/native/java/util/zip/ |
H A D | CRC32.c | 42 return crc32(crc, buf, 1); 51 crc = crc32(crc, buf + off, len); 59 return crc32(crc, (Bytef*)buf, len);
|
/openjdk7/jdk/test/java/util/zip/ZipFile/ |
H A D | ManyEntries.java | 54 CRC32 crc32 = new CRC32(); 68 crc32.reset(); 69 crc32.update((byte)i); 70 e.setCrc(crc32.getValue());
|
H A D | Assortment.java | 78 CRC32 crc32 = new CRC32(); 82 crc32.reset(); 83 if (data != null) crc32.update(data); 84 e.setCrc(crc32.getValue());
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | ShortWrite.java | 44 CRC32 crc32 = new CRC32(); 45 crc32.update(bb.array()); 46 return crc32.getValue();
|
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/ |
H A D | Crc32CksumType.java | 67 return crc32.byte2crc32sum_bytes(data, size);
|
H A D | DesCbcCrcEType.java | 89 return crc32.byte2crc32sum_bytes(data, size);
|
H A D | crc32.java | 29 // crc32.java 36 public final class crc32 extends MessageDigestSpi implements Cloneable { class in inherits:MessageDigestSpi,Cloneable 43 public crc32() { method in class:crc32 49 crc32 crc = (crc32)super.clone(); 263 System.out.println(">>>crc32: " + Integer.toHexString(temp)); 264 System.out.println(">>>crc32: " + Integer.toBinaryString(temp));
|
/openjdk7/jdk/test/sun/security/krb5/ |
H A D | RFC396xTest.java | 35 import sun.security.krb5.internal.crypto.crc32; 131 assertStringEquals(hex(crc32.byte2crc32sum_bytes("foo".getBytes("UTF-8"))), "33bc3273"); 132 assertStringEquals(hex(crc32.byte2crc32sum_bytes("test0123456789".getBytes("UTF-8"))), "d6883eb8"); 133 assertStringEquals(hex(crc32.byte2crc32sum_bytes("MASSACHVSETTS INSTITVTE OF TECHNOLOGY".getBytes("UTF-8"))), "f78041e3"); 134 assertStringEquals(hex(crc32.byte2crc32sum_bytes(new byte[] {(byte)0x80, 0})), "4b98833b"); 135 assertStringEquals(hex(crc32.byte2crc32sum_bytes(new byte[] {0, 8})), "3288db0e"); 136 assertStringEquals(hex(crc32.byte2crc32sum_bytes(new byte[] {0, (byte)0x80})), "2083b8ed"); 137 assertStringEquals(hex(crc32.byte2crc32sum_bytes(new byte[] {(byte)0x80})), "2083b8ed"); 138 assertStringEquals(hex(crc32.byte2crc32sum_bytes(new byte[] {(byte)0x80, 0, 0, 0})), "3bb659ed"); 139 assertStringEquals(hex(crc32 [all...] |
/openjdk7/jdk/make/tools/src/build/tools/javazic/ |
H A D | Timezone.java | 94 private int crc32; field in class:Timezone 191 * @return the checksum (crc32) value of the trasition table 194 return crc32; 360 * the value to <code>crc32</code>. 364 crc32 = 0; 375 crc32 = (int)sum.getValue();
|
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/ |
H A D | NativeUnpack.java | 261 CRC32 crc32 = _crc32; 310 crc32.reset(); 311 crc32.update(_buf, 0, size); 312 z.setCrc(crc32.getValue());
|
/openjdk7/jdk/make/sun/cmm/kcms/ |
H A D | FILES_c_unix.gmk | 46 crc32.c \
|
H A D | FILES_c_windows.gmk | 47 crc32.c \
|
/openjdk7/jdk/make/tools/src/build/tools/generatebreakiteratordata/ |
H A D | RuleBasedBreakIteratorBuilder.java | 2051 CRC32 crc32 = new CRC32(); 2054 crc32.update(stateTable[i]); 2058 crc32.update(backwardsStateTable[i]); 2060 crc32.update(toByteArray(endStates)); 2061 crc32.update(toByteArray(lookaheadStates)); 2063 crc32.update(BMPindices[i]); 2065 crc32.update(BMPdata); 2068 crc32.update(nonBMPdata[i]); 2073 crc32.update(additionalData[i]); 2099 out.write(toByteArray(crc32 [all...] |
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/ |
H A D | zconf.h | 69 # define crc32 z_crc32 macro
|
H A D | deflate.c | 405 s->wrap == 2 ? crc32(0L, Z_NULL, 0) : 604 strm->adler = crc32(0L, Z_NULL, 0); 640 strm->adler = crc32(strm->adler, s->pending_buf, 683 strm->adler = crc32(strm->adler, s->pending_buf + beg, 694 strm->adler = crc32(strm->adler, s->pending_buf + beg, 712 strm->adler = crc32(strm->adler, s->pending_buf + beg, 725 strm->adler = crc32(strm->adler, s->pending_buf + beg, 743 strm->adler = crc32(strm->adler, s->pending_buf + beg, 756 strm->adler = crc32(strm->adler, s->pending_buf + beg, 771 strm->adler = crc32( [all...] |
H A D | inflate.c | 399 /* check function to use adler32() for zlib or crc32() for gzip */ 402 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) 413 check = crc32(check, hbuf, 2); \ 422 check = crc32(check, hbuf, 4); \ 621 state->check = crc32(0L, Z_NULL, 0); 717 state->check = crc32(state->check, next, copy); 738 state->check = crc32(state->check, next, copy); 759 state->check = crc32(state->check, next, copy); 781 strm->adler = state->check = crc32(0L, Z_NULL, 0);
|
H A D | gzio.c | 87 uLong crc; /* crc32 of uncompressed data */ 147 s->crc = crc32(0L, Z_NULL, 0); 494 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start)); 508 s->crc = crc32(0L, Z_NULL, 0); 514 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start)); 613 s->crc = crc32(s->crc, (const Bytef *)buf, len); 893 s->crc = crc32(0L, Z_NULL, 0);
|
H A D | zcrc32.c | 25 /* crc32.c -- compute the CRC-32 of a data stream 43 one thread to use crc32(). 181 /* write out CRC tables to crc32.h */ 185 out = fopen("crc32.h", "w"); 187 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n"); 188 fprintf(out, " * Generated automatically by crc32.c\n */\n\n"); 223 #include "crc32.h" 227 * This function can be used by asm versions of crc32() 243 uLong ZEXPORT crc32(crc, buf, len) function
|
H A D | zlib.h | 533 gzip stream is being written, strm->adler is a crc32 instead of an adler32. 741 recommended that a check value such as an adler32 or a crc32 be applied to 750 a crc32 instead of an adler32. 1309 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); 1317 uLong crc = crc32(0L, Z_NULL, 0); 1320 crc = crc32(crc, buffer, length);
|
/openjdk7/jdk/test/java/util/zip/ |
H A D | zip.java | 48 CRC32 crc32 = new CRC32(); field in class:zip 458 crc32.reset(); 464 crc32.update(buf, 0, r); 471 e.setCrc(crc32.getValue());
|
/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/ |
H A D | zip.cpp | 61 inline uint jar::get_crc32(uint c, uchar *ptr, uint len) { return crc32(c, ptr, len); }
|
/openjdk7/jdk/src/share/native/sun/awt/libpng/ |
H A D | png.c | 138 png_ptr->crc = crc32(0, Z_NULL, 0); 165 png_ptr->crc = crc32(png_ptr->crc, ptr, (uInt)length);
|