Home
last modified time | relevance | path

Searched refs:ZipDataInput (Results 1 – 9 of 9) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DZipDataInput.java26 public interface ZipDataInput { interface
70 ZipDataInput slice(long offset, long size); in slice()
DZipUtils.java108 …public static boolean checkZip64EoCDLocatorIsPresent(ZipDataInput zip, long zipEocdOffset) throws … in checkZip64EoCDLocatorIsPresent()
192 public static ZipFileInfo findZipInfo(ZipDataInput in) throws IOException, HapFormatException { in findZipInfo()
219 private static Pair<Long, ByteBuffer> findEocdInHap(ZipDataInput in) throws IOException { in findEocdInHap()
227 …private static Pair<Long, ByteBuffer> findEocdInHap(ZipDataInput zip, int maxCommentSize) throws I… in findEocdInHap()
DByteBufferZipDataInput.java26 public class ByteBufferZipDataInput implements ZipDataInput {
71 public ZipDataInput slice(long offset, long size) { in slice()
DRandomAccessFileZipDataInput.java29 public class RandomAccessFileZipDataInput implements ZipDataInput {
132 public ZipDataInput slice(long offset, long size) { in slice()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DHapVerify.java23 import com.ohos.hapsigntool.zip.ZipDataInput;
78 private ZipDataInput beforeApkSigningBlock;
82 private ZipDataInput centralDirectoryBlock;
84 private ZipDataInput eocd;
106 ZipDataInput beforeApkSigningBlock, in HapVerify()
108 ZipDataInput centralDirectoryBlock, in HapVerify()
109 ZipDataInput eocd, in HapVerify()
376 … keySet, new ZipDataInput[]{beforeApkSigningBlock, centralDirectoryBlock, eocd}, optionalBlocks); in parserContentinfo()
DVerifyHap.java34 import com.ohos.hapsigntool.zip.ZipDataInput;
244 ZipDataInput hapFile = new RandomAccessFileZipDataInput(fle); in verifyHap()
292 private HapVerify getHapVerify(ZipDataInput hapFile, ZipFileInfo zipInfo, in getHapVerify()
296 ZipDataInput beforeHapSigningBlock = hapFile.slice(0, signingBlockOffset); in getHapVerify()
297 ZipDataInput centralDirectoryBlock = hapFile.slice(zipInfo.getCentralDirectoryOffset(), in getHapVerify()
301 ZipDataInput eocdBlock = new ByteBufferZipDataInput(eocdBbyteBuffer); in getHapVerify()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DHapUtils.java24 import com.ohos.hapsigntool.zip.ZipDataInput;
248 private static long getChunkCount(ZipDataInput[] contents) { in getChunkCount()
250 for (ZipDataInput content : contents) { in getChunkCount()
268 …Set<ContentDigestAlgorithm> digestAlgorithms, ZipDataInput[] zipData, List<SigningBlock> optionalB… in computeDigests()
286 for (ZipDataInput content : zipData) { in computeDigests()
492 public static HapSignBlockInfo findHapSigningBlock(ZipDataInput hap, ZipFileInfo zipInfo) in findHapSigningBlock()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
DSignProvider.java52 import com.ohos.hapsigntool.zip.ZipDataInput;
338 ZipDataInput outputHapIn = new RandomAccessFileZipDataInput(outputHap); in sign()
341 ZipDataInput beforeCentralDir = outputHapIn.slice(0, centralDirectoryOffset); in sign()
344 ZipDataInput centralDirectory = new ByteBufferZipDataInput(centralDirBuffer); in sign()
346 ZipDataInput eocd = new ByteBufferZipDataInput(eocdBuffer); in sign()
352 ZipDataInput[] contents = {beforeCentralDir, centralDirectory, eocd}; in sign()
452 … byte[] signingBlock, ZipDataInput centralDirectory, ByteBuffer eocdBuffer) throws IOException { in outputSignedFile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
DSignHap.java27 import com.ohos.hapsigntool.zip.ZipDataInput;
260 ZipDataInput[] hapData) in getHapSigningBlock()
420 …public static byte[] sign(ZipDataInput[] contents, SignerConfig signerConfig, List<SigningBlock> o… in sign()