Searched refs:checksum (Results 1 - 8 of 8) sorted by relevance

/dalvik/dx/src/com/android/dx/io/
H A DDexHasher.java25 * Generates and stores the checksum and signature of a dex file.
53 * Returns the checksum of all but the first 12 bytes of {@code dex}.
65 * Generates the signature and checksum of the dex file {@code out} and
72 int checksum = computeChecksum(dex);
73 dex.open(CHECKSUM_OFFSET).writeInt(checksum);
/dalvik/libdex/
H A DDexFile.cpp344 * Verify the checksum(s). This is reasonably quick, but does require
345 * touching every byte in the DEX file. The base checksum changes after
350 if (adler != pHeader->checksum) {
351 ALOGE("ERROR: bad checksum (%08x vs %08x)",
352 adler, pHeader->checksum);
356 ALOGV("+++ adler32 checksum (%08x) verified", adler);
362 if (adler != pOptHeader->checksum) {
363 ALOGE("ERROR: bad opt checksum (%08x vs %08x)",
364 adler, pOptHeader->checksum);
368 ALOGV("+++ adler32 opt checksum (
[all...]
H A DDexFile.h218 u4 checksum; /* adler32 checksum */ member in struct:DexHeader
485 u4 checksum; /* adler32 checksum covering deps/opt */ member in struct:DexOptHeader
577 * Compute DEX checksum.
H A DDexSwapVerify.cpp278 SWAP_FIELD4(pHeader->checksum);
2850 * Compute the adler32 checksum and compare it to what's stored in
2859 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum);
2861 u4 expectedChecksum = SWAP4(pHeader->checksum);
2867 ALOGE("ERROR: bad checksum (%08lx, expected %08x)",
/dalvik/dx/src/com/android/dx/dex/
H A DTableOfContents.java58 public int checksum; field in class:TableOfContents
84 checksum = headerIn.readInt();
170 out.writeInt(checksum);
/dalvik/vm/analysis/
H A DDexPrepare.cpp704 /* compute checksum from start of deps to end of opt area */
730 optHdr.checksum = optChecksum;
1510 * Compute a checksum on a piece of an open file.
1523 ALOGE("Unable to seek to start of checksum area (%ld): %s",
1534 ALOGE("Read failed (%d) while computing checksum (len=%zu): %s",
1549 * Update the Adler-32 checksum stored in the DEX file. This covers the
1556 * Rewrite the checksum. We leave the SHA-1 signature alone.
1559 const int nonSum = sizeof(pHeader->magic) + sizeof(pHeader->checksum);
1562 pHeader->checksum = adler;
/dalvik/vm/
H A DDvm.mk79 # bug hunting: checksum and verify interpreted stack when making JNI calls
/dalvik/dexdump/
H A DDexDump.cpp415 printf("checksum : %08x\n", pOptHeader->checksum);
422 printf("checksum : %08x\n", pHeader->checksum);
1816 fprintf(stderr, " -c : verify checksum and exit\n");
1820 fprintf(stderr, " -i : ignore checksum failures\n");
1845 case 'c': // verify the checksum then exit
1857 case 'i': // continue even if checksum is bad

Completed in 19 milliseconds