Home
last modified time | relevance | path

Searched refs:eocd (Results 1 – 11 of 11) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureInfo.java39 public final ByteBuffer eocd; field in SignatureInfo
46 ByteBuffer eocd) { in SignatureInfo() argument
51 this.eocd = eocd; in SignatureInfo()
DApkSigningBlockUtils.java152 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/
DZFile.java733 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/
DApkUtils.java104 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/
DZipUtils.java190 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/
DV2SchemeVerifier.java109 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()
DV2SchemeSigner.java144 DataSource eocd, in generateApkSignatureSchemeV2Block() argument
151 ApkSigningBlockUtils.computeContentDigests(beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV2Block()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java113 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()
DV3SchemeSigner.java133 DataSource eocd, in generateApkSignatureSchemeV3Block() argument
139 ApkSigningBlockUtils.computeContentDigests(beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV3Block()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java351 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/
DZFileTest.java877 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()