Lines Matching refs:cert_chain
1072 keymaster_cert_chain_t* cert_chain) { in attest_key() argument
1073 if (!dev || !key_to_attest || !attest_params || !cert_chain) in attest_key()
1079 *cert_chain = {}; in attest_key()
1100 cert_chain->entries = reinterpret_cast<keymaster_blob_t*>( in attest_key()
1101 malloc(rsp_chain.entry_count * sizeof(*cert_chain->entries))); in attest_key()
1102 if (!cert_chain->entries) in attest_key()
1104 cert_chain->entry_count = rsp_chain.entry_count; in attest_key()
1105 for (keymaster_blob_t& entry : array_range(cert_chain->entries, cert_chain->entry_count)) in attest_key()
1111 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
1112 if (!cert_chain->entries[i].data) { in attest_key()
1113 keymaster_free_cert_chain(cert_chain); in attest_key()
1116 cert_chain->entries[i].data_length = entry.data_length; in attest_key()
1117 memcpy(const_cast<uint8_t*>(cert_chain->entries[i].data), entry.data, entry.data_length); in attest_key()