/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 734 Eocd eocd = null; in readEocd() local 758 eocd = new Eocd(eocdBytes); in readEocd() 765 if (eocdStart + eocd.getEocdSize() != raf.length()) { in readEocd() 769 + eocd.getEocdSize() in readEocd() 781 eocd = null; in readEocd() 808 eocdEntry = map.add(eocdStart, eocdStart + eocd.getEocdSize(), eocd); in readEocd() 826 Eocd eocd = eocdEntry.getStore(); in readCentralDirectory() local 828 long dirSize = eocd.getDirectorySize(); in readCentralDirectory() 833 long centralDirectoryEnd = eocd.getDirectoryOffset() + dirSize; in readCentralDirectory() 836 + eocd.getDirectoryOffset() in readCentralDirectory() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 134 ByteBuffer eocd, in verifyIntegrity() argument 146 ByteBuffer modifiedEocd = ByteBuffer.allocate(eocd.remaining()); in verifyIntegrity() 147 int eocdSavedPos = eocd.position(); in verifyIntegrity() 149 modifiedEocd.put(eocd); in verifyIntegrity() 153 eocd.position(eocdSavedPos); in verifyIntegrity() 172 long centralDirOffset = ZipUtils.getZipEocdCentralDirectoryOffset(eocd); in verifyIntegrity() 262 DataSource eocd) throws IOException, NoSuchAlgorithmException, DigestException { in computeContentDigests() argument 274 new DataSource[] { beforeCentralDir, centralDir, eocd }, in computeContentDigests() 278 computeApkVerityDigest(beforeCentralDir, centralDir, eocd, contentDigests); in computeContentDigests() 596 DataSource eocd, Map<ContentDigestAlgorithm, byte[]> outputContentDigests) in computeApkVerityDigest() argument [all …]
|
D | SignatureInfo.java | 39 public final ByteBuffer eocd; field in SignatureInfo 46 ByteBuffer eocd) { in SignatureInfo() argument 51 this.eocd = eocd; in SignatureInfo()
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 78 ByteBuffer eocd) { in ZipSections() argument 80 eocdOffset, eocd); in ZipSections() 94 ByteBuffer eocd = zipEndOfCentralDirectory.slice(); in setZipEocdCentralDirectoryOffset() local 95 eocd.order(ByteOrder.LITTLE_ENDIAN); in setZipEocdCentralDirectoryOffset() 96 ZipUtils.setZipEocdCentralDirectoryOffset(eocd, offset); in setZipEocdCentralDirectoryOffset()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | VerityTreeBuilder.java | 104 DataSource centralDir, DataSource eocd) throws IOException { in generateVerityTreeRootHash() argument 114 ByteBuffer eocdBuf = ByteBuffer.allocate((int) eocd.size()); in generateVerityTreeRootHash() 116 eocd.copyTo(0, (int) eocd.size(), eocdBuf); in generateVerityTreeRootHash()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 148 DataSource eocd, in generateApkSignatureSchemeV2Block() argument 153 return generateApkSignatureSchemeV2Block(executor, beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV2Block() 162 DataSource eocd, in generateApkSignatureSchemeV2Block() argument 170 executor, beforeCentralDir, centralDir, eocd, signerConfigs); in generateApkSignatureSchemeV2Block()
|
D | V2SchemeVerifier.java | 108 ByteBuffer eocd = signatureInfo.eocd; in verify() local 114 eocd, in verify() 137 ByteBuffer eocd, in verify() argument 157 executor, beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 112 ByteBuffer eocd = signatureInfo.eocd; in verify() local 124 eocd, in verify() 145 ByteBuffer eocd, in verify() argument 157 executor, beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify()
|
D | V3SchemeSigner.java | 137 DataSource eocd, in generateApkSignatureSchemeV3Block() argument 143 executor, beforeCentralDir, centralDir, eocd, signerConfigs); in generateApkSignatureSchemeV3Block()
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | ZipUtils.java | 196 ByteBuffer eocd = buf.slice(); in findZipEndOfCentralDirectoryRecord() local 197 eocd.order(ByteOrder.LITTLE_ENDIAN); in findZipEndOfCentralDirectoryRecord() 198 return Pair.of(eocd, bufOffsetInFile + eocdOffsetInBuf); in findZipEndOfCentralDirectoryRecord()
|
/tools/apksig/src/main/java/com/android/apksig/zip/ |
D | ZipSections.java | 39 ByteBuffer eocd) { in ZipSections() argument 44 mEocd = eocd; in ZipSections()
|
/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()
|
/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/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 963 DataSource eocd = ApkSigningBlockUtils.copyWithModifiedCDOffset(beforeCentralDir, zipEocd); in outputZipSectionsInternal() local 986 eocd, in outputZipSectionsInternal() 1001 eocd, in outputZipSectionsInternal()
|