/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | SignatureInfo.java | 39 public final ByteBuffer eocd; field in SignatureInfo 46 ByteBuffer eocd) { in SignatureInfo() argument 51 this.eocd = eocd; in SignatureInfo()
|
D | ApkSigningBlockUtils.java | 152 ByteBuffer eocd, in verifyIntegrity() argument 164 ByteBuffer modifiedEocd = ByteBuffer.allocate(eocd.remaining()); in verifyIntegrity() 165 int eocdSavedPos = eocd.position(); in verifyIntegrity() 167 modifiedEocd.put(eocd); in verifyIntegrity() 171 eocd.position(eocdSavedPos); in verifyIntegrity() 384 DataSource eocd) throws IOException, NoSuchAlgorithmException, DigestException { in computeContentDigests() argument 391 new DataSource[] { beforeCentralDir, centralDir, eocd }, in computeContentDigests() 395 computeApkVerityDigest(beforeCentralDir, centralDir, eocd, contentDigests); in computeContentDigests() 504 DataSource eocd, Map<ContentDigestAlgorithm, byte[]> outputContentDigests) in computeApkVerityDigest() argument 519 byte[] rootHash = builder.generateVerityTreeRootHash(beforeCentralDir, centralDir, eocd); in computeApkVerityDigest() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 733 Eocd eocd = null; in readEocd() local 757 eocd = new Eocd(eocdBytes); in readEocd() 764 if (eocdStart + eocd.getEocdSize() != raf.length()) { in readEocd() 768 + eocd.getEocdSize() in readEocd() 780 eocd = null; in readEocd() 807 eocdEntry = map.add(eocdStart, eocdStart + eocd.getEocdSize(), eocd); in readEocd() 825 Eocd eocd = eocdEntry.getStore(); in readCentralDirectory() local 827 long dirSize = eocd.getDirectorySize(); in readCentralDirectory() 832 long centralDirectoryEnd = eocd.getDirectoryOffset() + dirSize; in readCentralDirectory() 835 + eocd.getDirectoryOffset() in readCentralDirectory() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 104 ByteBuffer eocd) { in ZipSections() argument 109 mEocd = eocd; in ZipSections() 162 ByteBuffer eocd = zipEndOfCentralDirectory.slice(); in setZipEocdCentralDirectoryOffset() local 163 eocd.order(ByteOrder.LITTLE_ENDIAN); in setZipEocdCentralDirectoryOffset() 164 ZipUtils.setZipEocdCentralDirectoryOffset(eocd, offset); in setZipEocdCentralDirectoryOffset()
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | ZipUtils.java | 190 ByteBuffer eocd = buf.slice(); in findZipEndOfCentralDirectoryRecord() local 191 eocd.order(ByteOrder.LITTLE_ENDIAN); in findZipEndOfCentralDirectoryRecord() 192 return Pair.of(eocd, bufOffsetInFile + eocdOffsetInBuf); in findZipEndOfCentralDirectoryRecord()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 109 ByteBuffer eocd = signatureInfo.eocd; in verify() local 114 eocd, in verify() 136 ByteBuffer eocd, in verify() argument 156 beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify()
|
D | V2SchemeSigner.java | 144 DataSource eocd, in generateApkSignatureSchemeV2Block() argument 151 ApkSigningBlockUtils.computeContentDigests(beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV2Block()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 113 ByteBuffer eocd = signatureInfo.eocd; in verify() local 124 eocd, in verify() 144 ByteBuffer eocd, in verify() argument 156 beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify()
|
D | V3SchemeSigner.java | 133 DataSource eocd, in generateApkSignatureSchemeV3Block() argument 139 ApkSigningBlockUtils.computeContentDigests(beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV3Block()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 351 DataSource eocd = DataSources.asDataSource(ByteBuffer.wrap(eocdBytes)); in onOutputZipEntriesWritten() local 356 addV2SignatureRequest = signer.outputZipSections(zipEntries, centralDir, eocd); in onOutputZipEntriesWritten()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 877 byte[][] eocd = new byte[1][]; in obtainingCDAndEocdWhenEntriesWrittenOnEmptyZip() 884 eocd[0] = zip.getEocdBytes(); in obtainingCDAndEocdWhenEntriesWrittenOnEmptyZip() 891 assertNotNull(eocd[0]); in obtainingCDAndEocdWhenEntriesWrittenOnEmptyZip() 892 assertEquals(22, eocd[0].length); in obtainingCDAndEocdWhenEntriesWrittenOnEmptyZip() 900 byte[][] eocd = new byte[1][]; in obtainingCDAndEocdWhenEntriesWrittenOnNonEmptyZip() 908 eocd[0] = zip.getEocdBytes(); in obtainingCDAndEocdWhenEntriesWrittenOnNonEmptyZip() 919 assertNotNull(eocd[0]); in obtainingCDAndEocdWhenEntriesWrittenOnNonEmptyZip() 920 assertEquals(22, eocd[0].length); in obtainingCDAndEocdWhenEntriesWrittenOnNonEmptyZip()
|