/system/keymaster/android_keymaster/ |
D | android_keymaster_messages.cpp | 86 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 …]
|
D | android_keymaster.cpp | 342 &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/ |
D | service.rs | 184 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()
|
D | security_level.rs | 120 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/ |
D | android_keymaster_messages_test.cpp | 111 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/ |
D | TrustyKeyMintDevice.cpp | 139 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/ |
D | AndroidKeyMintDevice.cpp | 285 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()
|
D | AndroidKeymaster3Device.cpp | 372 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
|
D | AndroidKeymaster4Device.cpp | 438 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_messages.h | 355 : 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/ |
D | TrustyKeymaster3Device.cpp | 328 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 469 resultCertChain = kmCertChain2Hidl(response.certificate_chain); in attestKey()
|
/system/keymaster/contexts/ |
D | soft_keymaster_device.cpp | 1013 keymaster_cert_chain_t& rsp_chain = response.certificate_chain; in attest_key()
|