Home
last modified time | relevance | path

Searched refs:Certificate (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/tests/unit/
Dverifier_test.cpp44 static void LoadKeyFromFile(const std::string& file_name, Certificate* cert) { in LoadKeyFromFile()
51 static void VerifyFile(const std::string& content, const std::vector<Certificate>& keys, in VerifyFile()
61 const std::vector<Certificate>& certs) { in VerifyPackageWithCertificates()
69 static void VerifyPackageWithSingleCertificate(const std::string& name, Certificate&& cert) { in VerifyPackageWithSingleCertificate()
70 std::vector<Certificate> certs; in VerifyPackageWithSingleCertificate()
98 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
107 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
111 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
118 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
122 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
[all …]
/bootable/recovery/install/include/install/
Dverifier.h45 struct Certificate { struct
51 Certificate(int hash_len_, KeyType key_type_, std::unique_ptr<RSA, RSADeleter>&& rsa_, in Certificate() function
83 int verify_file(VerifierInterface* package, const std::vector<Certificate>& keys);
94 bool LoadCertificateFromBuffer(const std::vector<uint8_t>& pem_content, Certificate* cert);
98 std::vector<Certificate> LoadKeysFromZipfile(const std::string& zip_name);
/bootable/recovery/install/
Dverifier.cpp113 int verify_file(VerifierInterface* package, const std::vector<Certificate>& keys) { in verify_file()
279 if (key.key_type == Certificate::KEY_TYPE_RSA) { in verify_file()
288 } else if (key.key_type == Certificate::KEY_TYPE_EC && key.hash_len == SHA256_DIGEST_LENGTH) { in verify_file()
312 static std::vector<Certificate> IterateZipEntriesAndSearchForKeys(const ZipArchiveHandle& handle) { in IterateZipEntriesAndSearchForKeys()
321 std::vector<Certificate> result; in IterateZipEntriesAndSearchForKeys()
334 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in IterateZipEntriesAndSearchForKeys()
352 std::vector<Certificate> LoadKeysFromZipfile(const std::string& zip_name) { in LoadKeysFromZipfile()
359 std::vector<Certificate> result = IterateZipEntriesAndSearchForKeys(handle); in LoadKeysFromZipfile()
406 bool LoadCertificateFromBuffer(const std::vector<uint8_t>& pem_content, Certificate* cert) { in LoadCertificateFromBuffer()
445 cert->key_type = Certificate::KEY_TYPE_RSA; in LoadCertificateFromBuffer()
[all …]
Dinstall.cpp636 std::vector<Certificate> loaded_keys = LoadKeysFromZipfile(CERTIFICATE_ZIP_FILE); in verify_package()