/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
H A D | ZipDataInput.java | 22 * 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 D | ZipUtils.java | 108 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 D | ByteBufferZipDataInput.java | 22 * ByteBuffer implementation of ZipDataInput 26 public class ByteBufferZipDataInput implements ZipDataInput { 71 public ZipDataInput slice(long offset, long size) { in slice()
|
H A D | RandomAccessFileZipDataInput.java | 25 * 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 D | zip_data_input.h | 28 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 D | random_access_file_input.h | 27 class RandomAccessFileInput : public ZipDataInput {
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
H A D | HapVerify.java | 23 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 D | VerifyHap.java | 34 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 D | random_access_file_input_output_test.cpp | 168 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 D | HapUtils.java | 23 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 D | SignProvider.java | 55 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 D | SignHap.java | 29 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 D | sign_provider.cpp | 168 std::shared_ptr<ZipDataInput> outputHapIn = std::make_shared<RandomAccessFileInput>(outputHap); in InitDataSourceContents()
|