Lines Matching refs:Certificate
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()
453 cert->key_type = Certificate::KEY_TYPE_EC; in LoadCertificateFromBuffer()