|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.io.DexHasher
public final class DexHasher
Generates and stores the checksum and signature of a dex file.
| Constructor Summary | |
|---|---|
DexHasher()
|
|
| Method Summary | |
|---|---|
int |
computeChecksum(DexBuffer dex)
Returns the checksum of all but the first 12 bytes of dex. |
byte[] |
computeSignature(DexBuffer dex)
Returns the signature of all but the first 32 bytes of dex. |
void |
writeHashes(DexBuffer dex)
Generates the signature and checksum of the dex file out and
writes them to the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DexHasher()
| Method Detail |
|---|
public byte[] computeSignature(DexBuffer dex)
throws IOException
dex. The
first 32 bytes of dex files are not specified to be included in the
signature.
IOException
public int computeChecksum(DexBuffer dex)
throws IOException
dex.
IOException
public void writeHashes(DexBuffer dex)
throws IOException
out and
writes them to the file.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||