Searched refs:blockLength (Results 1 - 3 of 3) sorted by relevance
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
H A D | VerifyHap.java | 335 int blockLength = header.getInt(); in checkCodeSign() 345 boolean isCodeSign = VerifyCodeSignature.verifyHap(outputFile, blockOffset, blockLength, in checkCodeSign() 377 int blockLength = -1; in getHapSignatureSchemeBlockAndOptionalBlocks() 383 blockLength = value.getInt(); in getHapSignatureSchemeBlockAndOptionalBlocks() 385 if (blockOffset + blockLength > signatureValueBytes.length) { in getHapSignatureSchemeBlockAndOptionalBlocks() 386 throw new SignatureNotFoundException("block end pos: " + (blockOffset + blockLength) in getHapSignatureSchemeBlockAndOptionalBlocks() 390 byte[] blockValue = Arrays.copyOfRange(signatureValueBytes, blockOffset, blockOffset + blockLength); in getHapSignatureSchemeBlockAndOptionalBlocks() 394 byte[] result = Arrays.copyOfRange(signatureValueBytes, blockOffset, blockOffset + blockLength); in getHapSignatureSchemeBlockAndOptionalBlocks()
|
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | hash_utils.cpp | 118 int64_t blockLength = length - readLength > HASH_LEN ? HASH_LEN : (length - readLength); in GetDigestFromBytes() local 119 std::string readStr(fileBytes.begin() + readLength, fileBytes.begin() + readLength + blockLength); in GetDigestFromBytes()
|
/developtools/hapsigner/hapsigntool_cpp/hap/verify/src/ |
H A D | verify_hap.cpp | 260 uint32_t blockLength; in CheckCodeSign() local 261 propertyBlockArray.GetUInt32(OFFSET_FOUR, blockLength); in CheckCodeSign() 280 bool isCodeSign = VerifyCodeSignature::VerifyHap(hapFilePath, blockOffset, blockLength, in CheckCodeSign()
|
Completed in 3 milliseconds