Home
last modified time | relevance | path

Searched refs:PAGE_SIZE_4K (Results 1 - 16 of 16) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/datastructure/
H A DElfSignBlock.java54 public static final int PAGE_SIZE_4K = 4096; field in ElfSignBlock
111 return (int) (PAGE_SIZE_4K - (signBlockOffset + Integer.BYTES * 2) % PAGE_SIZE_4K) % PAGE_SIZE_4K; in computeMerkleTreePaddingLength()
H A DCodeSignBlock.java51 public static final long PAGE_SIZE_4K = 4096L; field in CodeSignBlock
228 long residual = (codeSignBlockOffset + sizeWithoutMerkleTree) % PAGE_SIZE_4K; in computeMerkleTreeOffset()
232 this.zeroPadding = new byte[(int) (PAGE_SIZE_4K - residual)]; in computeMerkleTreeOffset()
/developtools/hapsigner/hapsigntool_cpp/codesigning/datastructure/src/
H A Delf_sign_block.cpp131 return (int32_t)(PAGE_SIZE_4K - (signBlockOffset + FsVerityDescriptorWithSign::INTEGER_BYTES * tmpVariable) in ComputeMerkleTreePaddingLength()
132 % PAGE_SIZE_4K) % PAGE_SIZE_4K; in ComputeMerkleTreePaddingLength()
H A Dmerkle_tree_extension.cpp79 if (!flag || (inMerkleTreeSize % PAGE_SIZE_4K != 0)) { in FromByteArray()
86 if (!flag || (inMerkleTreeOffset % PAGE_SIZE_4K != 0)) { in FromByteArray()
H A Dcode_sign_block.cpp168 int64_t residual = (codeSignBlockOffset + sizeWithoutMerkleTree) % PAGE_SIZE_4K; in ComputeMerkleTreeOffset()
172 zeroPadding = std::vector<int8_t>(static_cast<int>(PAGE_SIZE_4K - residual)); in ComputeMerkleTreeOffset()
/developtools/hapsigner/hapsigntool_cpp/codesigning/datastructure/include/
H A Dmerkle_tree_extension.h43 static constexpr int32_t PAGE_SIZE_4K = 4096; member in OHOS::SignatureTools::MerkleTreeExtension
H A Delf_sign_block.h28 static constexpr int32_t PAGE_SIZE_4K = 4096; member in OHOS::SignatureTools::ElfSignBlock
H A Dcode_sign_block.h34 static constexpr long PAGE_SIZE_4K = 4096; member in OHOS::SignatureTools::CodeSignBlock
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/include/
H A Dfs_verity_descriptor.h30 static const int PAGE_SIZE_4K = 4096; member in OHOS::SignatureTools::FsVerityDescriptor
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/src/
H A Dfs_verity_descriptor.cpp60 if (inTreeOffset % PAGE_SIZE_4K != 0) { in FromByteArray()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
H A DPageInfoGenerator.java135 int len = (int) (maxEntryDataOffset / CodeSignBlock.PAGE_SIZE_4K * PageInfoExtension.DEFAULT_UNIT_SIZE); in generateBitMap()
H A DVerifyCodeSignature.java307 long computedTreeOffset = getAlignmentAddr(CodeSignBlock.PAGE_SIZE_4K, fileReadOffset + offset); in generateCodeSignBlock()
H A DCodeSigning.java215 long bitmapSize = bitmapOff / CodeSignBlock.PAGE_SIZE_4K * PageInfoExtension.DEFAULT_UNIT_SIZE; in createPageInfoExtension()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/
H A DFsVerityDescriptor.java52 public static final int PAGE_SIZE_4K = 4096; field in FsVerityDescriptor
/developtools/hapsigner/hapsigntool_cpp/codesigning/sign/src/
H A Dverify_code_signature.cpp221 int64_t computedTreeOffset = GetAlignmentAddr(CodeSignBlock::PAGE_SIZE_4K, fileReadOffset + offset); in GenerateCodeSignBlock()
H A Dcode_signing.cpp120 if ((dataSize % CodeSignBlock::PAGE_SIZE_4K) != 0) { in ComputeDataSize()

Completed in 8 milliseconds