Home
last modified time | relevance | path

Searched refs:digests (Results 1 – 9 of 9) sorted by relevance

/system/security/ondevice-signing/
Dodsign_main.cpp120 std::map<std::string, std::string> digests; in computeDigests() local
131 digests[it->path()] = toHex(*digest); in computeDigests()
139 return digests; in computeDigests()
142 Result<void> verifyDigests(const std::map<std::string, std::string>& digests, in verifyDigests() argument
144 for (const auto& path_digest : digests) { in verifyDigests()
156 if (digests.size() > 0) { in verifyDigests()
216 Result<void> persistDigests(const std::map<std::string, std::string>& digests, in persistDigests() argument
219 google::protobuf::Map<std::string, std::string> proto_hashes(digests.begin(), digests.end()); in persistDigests()
361 Result<std::map<std::string, std::string>> digests; in main() local
363 digests = addFilesToVerityRecursive(kArtArtifactsDir, *key); in main()
[all …]
DVerityUtils.cpp177 std::map<std::string, std::string> digests; in addFilesToVerityRecursive() local
190 digests[it->path()] = *result; in addFilesToVerityRecursive()
198 return digests; in addFilesToVerityRecursive()
227 std::map<std::string, std::string> digests; in verifyAllFilesInVerity() local
240 digests[it->path()] = *result; in verifyAllFilesInVerity()
254 return digests; in verifyAllFilesInVerity()
/system/keymaster/legacy_support/
Dkeymaster1_legacy_support.cpp62 keymaster_digest_t* digests; in add_digests() local
65 dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length); in add_digests()
70 std::unique_ptr<keymaster_digest_t, Malloc_Delete> digests_deleter(digests); in add_digests()
72 auto digest_vec = make_vector(digests, digests_length); in add_digests()
/system/security/keystore2/src/crypto/tests/
Dcertificate_utils_test.cpp74 std::array<Digest, 5> digests = { variable
144 testing::Combine(testing::ValuesIn(ec_curves), testing::ValuesIn(digests)),
237 testing::ValuesIn(digests)),
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp114 keymaster_digest_t* digests; in add_digests() local
117 dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length); in add_digests()
122 std::unique_ptr<keymaster_digest_t, Malloc_Delete> digests_deleter(digests); in add_digests()
124 auto digest_vec = make_vector(digests, digests_length); in add_digests()
472 keymaster_digest_t** digests, in get_supported_digests() argument
476 if (!digests || !digests_length) return KM_ERROR_OUTPUT_PARAMETER_NULL; in get_supported_digests()
480 return km1_dev->get_supported_digests(km1_dev, algorithm, purpose, digests, digests_length); in get_supported_digests()
495 *digests = reinterpret_cast<keymaster_digest_t*>(malloc(*digests_length * sizeof(**digests))); in get_supported_digests()
496 if (!*digests) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in get_supported_digests()
497 std::copy(response.results, response.results + response.results_length, *digests); in get_supported_digests()
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp829 keymaster_digest_t** digests, in get_supported_digests() argument
832 unwrap(dev), algorithm, purpose, digests, digests_length); in get_supported_digests()
836 std::copy_if(*digests, *digests + *digests_length, std::back_inserter(filtered_digests), in get_supported_digests()
839 free(*digests); in get_supported_digests()
841 *digests = reinterpret_cast<keymaster_digest_t*>( in get_supported_digests()
843 std::copy(filtered_digests.begin(), filtered_digests.end(), *digests); in get_supported_digests()
Dandroid_keymaster_test.cpp641 vector<keymaster_digest_t> digests = { in TEST_P() local
647 for (keymaster_digest_t digest : digests) { in TEST_P()
1106 vector<keymaster_digest_t> digests = { in TEST_P() local
1119 for (keymaster_digest_t digest : digests) { in TEST_P()
1269 keymaster_digest_t digests[] = { in TEST_P() local
1282 for (auto digest : digests) in TEST_P()
1286 for (auto digest : digests) { in TEST_P()
2178 keymaster_digest_t digests[] = { in TEST_P() local
2184 for (auto digest : digests) { in TEST_P()
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h117 keymaster_digest_t** digests,
/system/libhidl/transport/base/1.0/
DIBase.hal138 * @return hashchain a vector of SHA-1 digests