Searched refs:dig (Results 1 - 9 of 9) sorted by relevance
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | hash_utils.cpp | 85 std::vector<int8_t> dig = GetByteDigest(str, readLen, algName); in GetFileDigest() local 86 hashMap.emplace(num, dig); in GetFileDigest() 120 std::vector<int8_t> dig = GetByteDigest(readStr, readStr.size(), algName); in GetDigestFromBytes() local 121 hashMap.emplace(num, dig); in GetDigestFromBytes()
|
/developtools/hapsigner/hapsigntool_cpp/hap/sign/src/ |
H A D | sign_bin.cpp | 127 std::vector<int8_t> dig = GenerateFileDigest(outputFile, signAlg); in WriteSignDataToOutputFile() local 128 if (dig.empty()) { in WriteSignDataToOutputFile() 133 std::string signedData(dig.begin(), dig.end()); in WriteSignDataToOutputFile()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
H A D | HashUtils.java | 103 byte[] dig = getByteDigest(fileDate, byteCount, algName); in getFileDigest() 104 hashList.put(num, dig); in getFileDigest()
|
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapSign/ |
H A D | hap_openssl_utils_test.cpp | 92 unsigned char dig[EVP_MAX_MD_SIZE]; in HWTEST_F() local 93 int32_t ret = DigestCommon::GetDigest(parameter, dig); in HWTEST_F()
|
/developtools/hapsigner/hapsigntool_cpp_test/unittest/elfVerify/ |
H A D | verify_bin_test.cpp | 482 std::vector<int8_t> dig = HashUtils::GetDigestFromBytes(fileBytes, length, algName); in HWTEST_F() local 483 int size = dig.size(); in HWTEST_F() 501 std::vector<int8_t> dig = HashUtils::GetDigestFromBytes(fileBytes, length, algName); in HWTEST_F() local 502 int size = dig.size(); in HWTEST_F()
|
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapVerify/ |
H A D | hap_signer_block_utils_test.cpp | 103 X509_ALGOR* dig; in SetTestSignerInfoSignAlgor() local 105 PKCS7_SIGNER_INFO_get0_algs(info, NULL, &dig, &sig); in SetTestSignerInfoSignAlgor() 106 if (dig == NULL || dig->algorithm == NULL || in SetTestSignerInfoSignAlgor() 107 (hashNid = OBJ_obj2nid(dig->algorithm)) == NID_undef || in SetTestSignerInfoSignAlgor()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/ |
H A D | SignBin.java | 196 byte[] dig = contentInfo.getByteContent(); in writeSignDataToOutputFile() 197 outputChunk = Pkcs7Generator.BC.generateSignedData(dig, signerConfig); in writeSignDataToOutputFile()
|
/developtools/hapsigner/hapsigntool_cpp/hap/verify/src/ |
H A D | verify_elf.cpp | 225 std::vector<int8_t> dig = contentInfo.GetByteContent(); in GenerateFileDigest() local 226 if (dig.empty()) { in GenerateFileDigest() 230 signBlockInfo.SetFileDigest(dig); in GenerateFileDigest()
|
/developtools/hapsigner/hapsigntool_cpp/profile/src/ |
H A D | pkcs7_data.cpp | 73 X509_ALGOR* dig; in SetSignerInfoSignAlgor() local 75 PKCS7_SIGNER_INFO_get0_algs(info, NULL, &dig, &sig); in SetSignerInfoSignAlgor() 76 if (dig == NULL || dig->algorithm == NULL || in SetSignerInfoSignAlgor() 77 (hashNid = OBJ_obj2nid(dig->algorithm)) == NID_undef || in SetSignerInfoSignAlgor()
|
Completed in 7 milliseconds