Lines Matching refs:Certificate

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()
129 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
133 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
140 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
144 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
151 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
155 ASSERT_EQ(Certificate::KEY_TYPE_EC, cert.key_type); in TEST()
162 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
166 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
204 std::vector<Certificate> certs = LoadKeysFromZipfile(otacerts.path); in TEST()
211 std::vector<Certificate> certs = LoadKeysFromZipfile(otacerts.path); in TEST()
227 std::vector<Certificate> certs = LoadKeysFromZipfile(otacerts.path); in TEST()
241 std::vector<Certificate> certs = LoadKeysFromZipfile(otacerts.path); in TEST()
261 certs_.emplace_back(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in SetUp()
268 std::vector<Certificate> certs_;
278 std::vector<Certificate> certs; in TEST()
279 certs.emplace_back(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
292 std::vector<Certificate> certs; in TEST()
293 certs.emplace_back(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()
311 std::vector<Certificate> certs; in TEST()
312 certs.emplace_back(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST()