Home
last modified time | relevance | path

Searched refs:certificate_chain (Results 1 – 13 of 13) sorted by relevance

/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp86 size_t chain_size(const keymaster_cert_chain_t& certificate_chain) { in chain_size() argument
88 for (size_t i = 0; i < certificate_chain.entry_count; ++i) { in chain_size()
90 result += certificate_chain.entries[i].data_length; in chain_size()
95 uint8_t* serialize_chain(const keymaster_cert_chain_t& certificate_chain, uint8_t* buf, in serialize_chain() argument
97 buf = append_uint32_to_buf(buf, end, certificate_chain.entry_count); in serialize_chain()
98 for (size_t i = 0; i < certificate_chain.entry_count; ++i) { in serialize_chain()
99 buf = append_size_and_data_to_buf(buf, end, certificate_chain.entries[i].data, in serialize_chain()
100 certificate_chain.entries[i].data_length); in serialize_chain()
111 CertificateChain certificate_chain(entry_count); in deserialize_chain() local
112 if (!certificate_chain.entries) return {}; in deserialize_chain()
[all …]
Dandroid_keymaster.cpp342 &response->certificate_chain); in GenerateKey()
367 if (gen_key_response.certificate_chain.entry_count != 1) { in GenerateRkpKey()
375 GetEcdsa256KeyFromCert(gen_key_response.certificate_chain.begin(), x_coord.data(), in GenerateRkpKey()
747 response->certificate_chain = in AttestKey()
792 &response->certificate_chain); in ImportKey()
891 &response->certificate_chain); in ImportWrappedKey()
/system/security/keystore2/src/
Dservice.rs184 certificate_chain: Option<&[u8]>, in update_subcomponent()
213 db.set_blob(&key_id_guard, SubComponentType::CERT_CHAIN, certificate_chain, None) in update_subcomponent()
220 if !(public_cert.is_none() && certificate_chain.is_some()) { in update_subcomponent()
247 certificate_chain.unwrap(), in update_subcomponent()
375 certificate_chain: Option<&[u8]>, in updateSubcomponent()
378 map_or_log_err(self.update_subcomponent(key, public_cert, certificate_chain), Ok) in updateSubcomponent()
Dsecurity_level.rs120 certificateChain: mut certificate_chain, in store_new_key()
124 match certificate_chain.len() { in store_new_key()
126 _ => Some(certificate_chain.remove(0).encodedCertificate), in store_new_key()
128 match certificate_chain.len() { in store_new_key()
131 certificate_chain in store_new_key()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp111 rsp.certificate_chain = CertificateChain(3); in TEST()
112 rsp.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
113 rsp.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
114 rsp.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
127 keymaster_cert_chain_t* chain = &deserialized->certificate_chain; in TEST()
512 msg.certificate_chain = CertificateChain(3); in TEST()
513 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
514 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
515 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
531 keymaster_cert_chain_t* chain = &deserialized->certificate_chain; in TEST()
[all …]
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp139 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in generateKey()
188 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in importKey()
218 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in importWrappedKey()
/system/keymaster/ng/
DAndroidKeyMintDevice.cpp285 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in generateKey()
316 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in importKey()
347 creationResult->certificateChain = convertCertificateChain(response.certificate_chain); in importWrappedKey()
DAndroidKeymaster3Device.cpp372 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
DAndroidKeymaster4Device.cpp438 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h355 : KeymasterResponse(ver), key_blob{}, certificate_chain{} {} in GenerateKeyResponse()
364 CertificateChain certificate_chain; member
579 : KeymasterResponse(ver), key_blob{}, certificate_chain{} {} in ImportKeyResponse()
592 CertificateChain certificate_chain; member
709 CertificateChain certificate_chain; member
872 : KeymasterResponse(ver), key_blob{}, certificate_chain{} {} in KeymasterResponse()
885 CertificateChain certificate_chain; member
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp328 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp469 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp1013 keymaster_cert_chain_t& rsp_chain = response.certificate_chain; in attest_key()