Searched refs:Certificate (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/tests/unit/ |
D | verifier_test.cpp | 44 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/ |
D | verifier.h | 45 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/ |
D | verifier.cpp | 113 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 …]
|
D | install.cpp | 641 std::vector<Certificate> loaded_keys = LoadKeysFromZipfile(CERTIFICATE_ZIP_FILE); in verify_package()
|