Home
last modified time | relevance | path

Searched refs:ZipDataInput (Results 1 - 13 of 13) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
H A DZipDataInput.java22 * ZipDataInput interface
26 public interface ZipDataInput { interface
37 * @param offset offset index at the ZipDataInput
47 * @param offset offset index at the ZipDataInput
55 * Create a ByteBuffer which contain the specified data block from this ZipDataInput
57 * @param offset offset index at the ZipDataInput
65 * Create a new ZipDataInput whose content is shared by this ZipDataInput
67 * @param offset offset index at the ZipDataInput
69 * @return new ZipDataInput
[all...]
H A DZipUtils.java108 public static boolean checkZip64EoCDLocatorIsPresent(ZipDataInput zip, long zipEocdOffset) throws IOException { 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 IOException { in findEocdInHap()
H A DByteBufferZipDataInput.java22 * ByteBuffer implementation of ZipDataInput
26 public class ByteBufferZipDataInput implements ZipDataInput {
71 public ZipDataInput slice(long offset, long size) { in slice()
H A DRandomAccessFileZipDataInput.java25 * RandomAccessFile implementation of ZipDataInput
29 public class RandomAccessFileZipDataInput implements ZipDataInput {
148 public ZipDataInput slice(long offset, long size) { in slice()
/developtools/hapsigner/hapsigntool_cpp/zip/include/
H A Dzip_data_input.h28 class ZipDataInput { class
30 virtual ~ZipDataInput() in ~ZipDataInput()
44 * @param offset offset index at the ZipDataInput
52 * Create a ByteBuffer which contain the specified data block from this ZipDataInput
54 * @param offset offset index at the ZipDataInput
H A Drandom_access_file_input.h27 class RandomAccessFileInput : public ZipDataInput {
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A 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()
H A 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_cpp_test/unittest/zip/
H A Drandom_access_file_input_output_test.cpp168 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap, 1, 1); in HWTEST_F()
186 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap, 1, -1); in HWTEST_F()
204 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap, -1, 1); in HWTEST_F()
218 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap); in HWTEST_F()
277 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap); in HWTEST_F()
301 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(*outputHap); in HWTEST_F()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/
H A DHapUtils.java23 import com.ohos.hapsigntool.zip.ZipDataInput;
252 private static long getChunkCount(ZipDataInput[] contents) { in getChunkCount()
254 for (ZipDataInput content : contents) { in getChunkCount()
272 Set<ContentDigestAlgorithm> digestAlgorithms, ZipDataInput[] zipData, List<SigningBlock> optionalBlocks) in computeDigests()
290 for (ZipDataInput content : zipData) { in computeDigests()
490 * @param hap ZipDataInput object of zip file
496 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/
H A DSignProvider.java55 import com.ohos.hapsigntool.zip.ZipDataInput;
340 ZipDataInput outputHapIn = new RandomAccessFileZipDataInput(outputHap); in sign()
343 ZipDataInput beforeCentralDir = outputHapIn.slice(0, centralDirectoryOffset); in sign()
346 ZipDataInput centralDirectory = new ByteBufferZipDataInput(centralDirBuffer); in sign()
348 ZipDataInput eocd = new ByteBufferZipDataInput(eocdBuffer); in sign()
354 ZipDataInput[] contents = {beforeCentralDir, centralDirectory, eocd}; in sign()
455 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/
H A DSignHap.java29 import com.ohos.hapsigntool.zip.ZipDataInput;
257 ZipDataInput[] hapData) in getHapSigningBlock()
420 public static byte[] sign(ZipDataInput[] contents, SignerConfig signerConfig, List<SigningBlock> optionalBlocks) in sign()
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dsign_provider.cpp168 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(outputHap); in InitDataSourceContents()

Completed in 12 milliseconds