Searched refs:crc (Results 1 - 25 of 41) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/util/zip/
H A DCRC32.java36 private int crc; field in class:CRC32
52 crc = update(crc, b);
65 crc = updateBytes(crc, b, off, len);
74 crc = updateBytes(crc, b, 0, b.length);
81 crc = 0;
88 return (long)crc & 0xffffffffL;
91 private native static int update(int crc, in argument
92 updateBytes(int crc, byte[] b, int off, int len) argument
[all...]
H A DZipEntry.java39 long crc = -1; // crc-32 of entry data field in class:ZipEntry
83 crc = e.crc;
171 * @param crc the CRC-32 value
176 public void setCrc(long crc) { argument
177 if (crc < 0 || crc > 0xFFFFFFFFL) {
178 throw new IllegalArgumentException("invalid entry crc-32");
180 this.crc
[all...]
H A DZipInputStream.java47 private CRC32 crc = new CRC32(); field in class:ZipInputStream
119 crc.reset();
199 crc.update(b, off, len);
215 crc.update(b, off, len);
217 if (remaining == 0 && entry.crc != crc.getValue()) {
219 "invalid entry CRC (expected 0x" + Long.toHexString(entry.crc) +
220 " but got 0x" + Long.toHexString(crc.getValue()) + ")");
313 e.crc = get32(tmpbuf, LOCCRC);
376 e.crc
[all...]
H A DGZIPOutputStream.java42 protected CRC32 crc = new CRC32(); field in class:GZIPOutputStream
96 crc.reset();
147 crc.update(buf, off, len);
202 writeInt((int)crc.getValue(), buf, offset); // CRC-32 of uncompr. data
H A DGZIPInputStream.java47 protected CRC32 crc = new CRC32(); field in class:GZIPInputStream
123 crc.update(buf, off, n);
160 CheckedInputStream in = new CheckedInputStream(this_in, crc);
161 crc.reset();
195 int v = (int)crc.getValue() & 0xffff;
201 crc.reset();
218 if ((readUInt(in) != crc.getValue()) ||
H A DZipOutputStream.java58 private CRC32 crc = new CRC32(); field in class:ZipOutputStream
185 // store size, compressed size, and crc-32 in LOC header
189 // store size, compressed size, and crc-32 in data descriptor
191 if (e.size == -1 || e.csize == -1 || e.crc == -1)
196 // compressed size, uncompressed size, and crc-32 must all be
206 if (e.size == -1 || e.crc == -1) {
208 "STORED entry missing size, compressed size, or crc-32");
241 // verify size, compressed size, and crc-32 settings
252 if (e.crc != crc
[all...]
/openjdk7/jdk/src/share/native/java/util/zip/
H A DCRC32.c37 Java_java_util_zip_CRC32_update(JNIEnv *env, jclass cls, jint crc, jint b) argument
42 return crc32(crc, buf, 1);
46 Java_java_util_zip_CRC32_updateBytes(JNIEnv *env, jclass cls, jint crc, argument
51 crc = crc32(crc, buf + off, len);
54 return crc;
57 JNIEXPORT jint ZIP_CRC32(jint crc, const jbyte *buf, jint len) argument
59 return crc32(crc, (Bytef*)buf, len);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DUCEncoder.java103 private CRC16 crc = new CRC16(); field in class:UCEncoder
122 crc.update(a);
124 crc.update(b);
150 crc.value = 0;
164 tmp[0] = (byte) ((crc.value >>> 8) & 0xff);
165 tmp[1] = (byte) (crc.value & 0xff);
H A DUCDecoder.java112 private CRC16 crc = new CRC16(); field in class:UCDecoder
158 crc.update(high_byte);
161 crc.update(low_byte);
190 crc.value = 0;
221 int lineCRC = crc.value;
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/
H A Dzcrc32.c41 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
78 /* Definitions for doing the crc four data bytes at a time. */
91 /* Local functions for crc concatenation */
135 /* terms of polynomial defining this crc (except x^32): */
150 /* generate a crc for every 8-bit value */
159 /* generate crc for each value followed by one, two, and three zeros,
239 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
243 uLong ZEXPORT crc32(crc, bu
[all...]
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/
H A Dcrc32.java49 crc32 crc = (crc32)super.clone();
50 crc.init();
51 return crc;
205 int crc = b;
208 if ((crc & 1) != 0)
209 crc = (crc >>> 1) ^ 0xedb88320;
211 crc = crc >>> 1;
213 return crc;
[all...]
/openjdk7/jdk/test/tools/launcher/
H A DZipMeUp.java38 static final CRC32 crc = new CRC32(); field in class:ZipMeUp
43 crc.reset();
45 CheckedOutputStream cos = new CheckedOutputStream(baos, crc);
72 ze.setCrc(crc.getValue());
/openjdk7/jdk/test/java/net/URLClassLoader/
H A DB7050028.java58 CRC32 crc = new CRC32();
59 crc.update(data);
60 ze.setCrc(crc.getValue());
/openjdk7/jdk/test/sun/security/tools/jarsigner/
H A DLargeJarEntry.java54 CRC32 crc = new CRC32();
56 crc.update(bytes);
61 je.setCrc(crc.getValue());
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileAttributes.java119 public long crc() { method in class:ZipFileAttributes
120 return e.crc;
159 fm.format(" crc : %x%n", crc());
H A DZipFileAttributeView.java66 crc, enum constant in enum:ZipFileAttributeView.AttrID
179 case crc:
181 return zfas.crc();
/openjdk7/jdk/test/java/util/zip/
H A DStoredCRC.java47 CRC32 crc = new CRC32();
48 crc.update(writtenData);
49 ze.setCrc(crc.getValue());
/openjdk7/hotspot/src/os/solaris/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c49 static unsigned int gnu_debuglink_crc32(unsigned int crc, unsigned char *buf,
222 gnu_debuglink_crc32(unsigned int crc, unsigned char *buf, size_t len) { argument
280 crc = ~crc & 0xffffffff;
282 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
284 return ~crc & 0xffffffff;
/openjdk7/jdk/make/tools/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c49 static unsigned int gnu_debuglink_crc32(unsigned int crc, unsigned char *buf,
222 gnu_debuglink_crc32(unsigned int crc, unsigned char *buf, size_t len) { argument
280 crc = ~crc & 0xffffffff;
282 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
284 return ~crc & 0xffffffff;
/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/
H A Dzip.h74 int len, int clen, uLong crc);
76 int len, int clen, unsigned int crc);
H A Dzip.cpp100 int len, int clen, uLong crc) {
124 header[8] = (ushort)GET_INT_LO(crc);
125 header[9] = (ushort)GET_INT_HI(crc);
162 int len, int clen, uint crc) {
186 header[7] = (ushort)GET_INT_LO(crc);
187 header[8] = (ushort)GET_INT_HI(crc);
268 uint crc = get_crc32(0,Z_NULL,0); local
270 crc = get_crc32(crc, (uchar *)head.ptr, (uint)head.len);
272 crc
99 add_to_jar_directory(const char* fname, bool store, int modtime, int len, int clen, uLong crc) argument
161 write_jar_header(const char* fname, bool store, int modtime, int len, int clen, uint crc) argument
[all...]
/openjdk7/langtools/test/tools/javac/file/zip/
H A DT6836682.java68 CRC32 crc = new CRC32();
72 crc.update(buffer);
74 return crc.getValue();
79 CRC32 crc = new CRC32();
87 crc.update(buffer, 0, n);
94 return crc.getValue();
/openjdk7/hotspot/agent/src/os/linux/
H A Dsymtab.c65 unsigned int gnu_debuglink_crc32 (unsigned int crc, argument
125 crc = ~crc & 0xffffffff;
127 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
128 return ~crc & 0xffffffff;
134 open_debug_file (const char *pathname, unsigned int crc) argument
153 if (crc == file_crc)
208 static unsigned int crc; local
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/
H A DUnpackerImpl.java202 final CRC32 crc = new CRC32(); field in class:UnpackerImpl.DoUnpack
204 final OutputStream crcOut = new CheckedOutputStream(bufOut, crc);
243 if (needCRC) crc.reset();
257 Utils.log.info("stored size="+bufOut.size()+" and crc="+crc.getValue());
261 je.setCrc(crc.getValue());
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/png/
H A DPNGImageWriter.java57 private int crc = 0xffffffff; field in class:CRC
78 crc = 0xffffffff;
83 crc = crcTable[(crc ^ data[off + n]) & 0xff] ^ (crc >>> 8);
88 crc = crcTable[(crc ^ data) & 0xff] ^ (crc >>> 8);
92 return crc ^ 0xffffffff;
101 private CRC crc field in class:ChunkStream
160 private CRC crc = new CRC(); field in class:IDATOutputStream
[all...]

Completed in 80 milliseconds

12