Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/tests/unit/
Dverifier_test.cpp44 static void LoadKeyFromFile(const std::string& file_name, Certificate* cert) { in LoadKeyFromFile() argument
48 std::vector<uint8_t>(testkey_string.begin(), testkey_string.end()), cert)); in LoadKeyFromFile()
69 static void VerifyPackageWithSingleCertificate(const std::string& name, Certificate&& cert) { in VerifyPackageWithSingleCertificate() argument
71 certs.emplace_back(std::move(cert)); in VerifyPackageWithSingleCertificate()
98 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST() local
103 std::vector<uint8_t>(testkey_string.begin(), testkey_string.end()), &cert)); in TEST()
107 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in TEST() local
108 LoadKeyFromFile(from_testdata_base("testkey_v1.x509.pem"), &cert); in TEST()
110 ASSERT_EQ(SHA_DIGEST_LENGTH, cert.hash_len); in TEST()
111 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
[all …]
/bootable/recovery/install/
Dverifier.cpp340 Certificate cert(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr); in IterateZipEntriesAndSearchForKeys() local
342 if (!LoadCertificateFromBuffer(pem_content, &cert)) { in IterateZipEntriesAndSearchForKeys()
347 result.emplace_back(std::move(cert)); in IterateZipEntriesAndSearchForKeys()
412 bool LoadCertificateFromBuffer(const std::vector<uint8_t>& pem_content, Certificate* cert) { in LoadCertificateFromBuffer() argument
431 cert->hash_len = SHA_DIGEST_LENGTH; in LoadCertificateFromBuffer()
435 cert->hash_len = SHA256_DIGEST_LENGTH; in LoadCertificateFromBuffer()
451 cert->key_type = Certificate::KEY_TYPE_RSA; in LoadCertificateFromBuffer()
452 cert->ec.reset(); in LoadCertificateFromBuffer()
453 cert->rsa.reset(EVP_PKEY_get1_RSA(public_key.get())); in LoadCertificateFromBuffer()
454 if (!cert->rsa || !CheckRSAKey(cert->rsa)) { in LoadCertificateFromBuffer()
[all …]
/bootable/recovery/install/include/install/
Dverifier.h94 bool LoadCertificateFromBuffer(const std::vector<uint8_t>& pem_content, Certificate* cert);