Home
last modified time | relevance | path

Searched refs:cert_chain (Results 1 – 5 of 5) sorted by relevance

/system/keymaster/
Dasymmetric_key.cpp267 keymaster_cert_chain_t* cert_chain) const { in GenerateAttestation()
341 if (!copy_attestation_chain(context, sign_algorithm, cert_chain, &error)) in GenerateAttestation()
345 if (cert_chain->entry_count < 2) { in GenerateAttestation()
351 const uint8_t* p = cert_chain->entries[1].data; in GenerateAttestation()
352 X509_Ptr signing_cert(d2i_X509(nullptr, &p, cert_chain->entries[1].data_length)); in GenerateAttestation()
374 return get_certificate_blob(certificate.get(), &cert_chain->entries[0]); in GenerateAttestation()
Dsoft_keymaster_device.cpp1050 keymaster_cert_chain_t* cert_chain) { in attest_key() argument
1051 if (!dev || !key_to_attest || !attest_params || !cert_chain) in attest_key()
1057 cert_chain->entry_count = 0; in attest_key()
1058 cert_chain->entries = nullptr; in attest_key()
1079 cert_chain->entries = reinterpret_cast<keymaster_blob_t*>( in attest_key()
1080 malloc(rsp_chain.entry_count * sizeof(*cert_chain->entries))); in attest_key()
1081 if (!cert_chain->entries) in attest_key()
1083 cert_chain->entry_count = rsp_chain.entry_count; in attest_key()
1084 for (keymaster_blob_t& entry : array_range(cert_chain->entries, cert_chain->entry_count)) in attest_key()
1090 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
[all …]
Dandroid_keymaster_test.cpp3616 keymaster_cert_chain_t cert_chain; in TEST_P() local
3617 EXPECT_EQ(KM_ERROR_OK, AttestKey("challenge", &cert_chain)); in TEST_P()
3618 EXPECT_EQ(3U, cert_chain.entry_count); in TEST_P()
3619 EXPECT_TRUE(verify_chain(cert_chain)); in TEST_P()
3634 expected_keymaster_security_level, cert_chain.entries[0])); in TEST_P()
3636 keymaster_free_cert_chain(&cert_chain); in TEST_P()
3654 keymaster_cert_chain_t cert_chain; in TEST_P() local
3655 EXPECT_EQ(KM_ERROR_OK, AttestKey("challenge", &cert_chain)); in TEST_P()
3656 EXPECT_EQ(3U, cert_chain.entry_count); in TEST_P()
3657 EXPECT_TRUE(verify_chain(cert_chain)); in TEST_P()
[all …]
Dandroid_keymaster_test_utils.cpp332 keymaster_cert_chain_t* cert_chain) { in AttestKey() argument
338 return device()->attest_key(device(), &blob_, &attest_params, cert_chain); in AttestKey()
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h210 keymaster_cert_chain_t* cert_chain);