Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 6 of 6) sorted by relevance

/trusty/user/app/keymaster/
Dtrusty_remote_provisioning_context.cpp88 keymaster_error_t ReadAttestationIds(AttestationIds* ids) { in ReadAttestationIds() argument
95 auto err = ss_manager->ReadAttestationIds(ids); in ReadAttestationIds()
113 AttestationIds ids; in CreateDeviceInfo() local
114 if (ReadAttestationIds(&ids) != KM_ERROR_OK) { in CreateDeviceInfo()
117 ADD_ID_FIELD(result, ids.brand, "brand") in CreateDeviceInfo()
118 ADD_ID_FIELD(result, ids.manufacturer, "manufacturer") in CreateDeviceInfo()
119 ADD_ID_FIELD(result, ids.product, "product") in CreateDeviceInfo()
120 ADD_ID_FIELD(result, ids.model, "model") in CreateDeviceInfo()
121 ADD_ID_FIELD(result, ids.device, "device") in CreateDeviceInfo()
Dtrusty_keymaster_context.cpp962 AttestationIds ids; in VerifyAndCopyDeviceIds() local
963 auto err = ss_manager->ReadAttestationIds(&ids); in VerifyAndCopyDeviceIds()
973 PROTO_BYTES_DOES_NOT_MATCH_BLOB(entry.blob, ids.brand); in VerifyAndCopyDeviceIds()
979 PROTO_BYTES_DOES_NOT_MATCH_BLOB(entry.blob, ids.device); in VerifyAndCopyDeviceIds()
985 PROTO_BYTES_DOES_NOT_MATCH_BLOB(entry.blob, ids.product); in VerifyAndCopyDeviceIds()
991 PROTO_BYTES_DOES_NOT_MATCH_BLOB(entry.blob, ids.serial); in VerifyAndCopyDeviceIds()
997 PROTO_BYTES_DOES_NOT_MATCH_BLOB(entry.blob, ids.imei); in VerifyAndCopyDeviceIds()
1003 if (ids.second_imei.size > 0) { in VerifyAndCopyDeviceIds()
1005 entry.blob, ids.second_imei); in VerifyAndCopyDeviceIds()
1015 reinterpret_cast<const char*>(ids.imei.bytes), in VerifyAndCopyDeviceIds()
[all …]
Dsecure_storage_manager.cpp462 UniquePtr<AttestationIds> ids; member
570 result.ids->has_second_imei = true; in SetAttestationIdsKM3()
571 result.ids->second_imei.size = request.second_imei.buffer_size(); in SetAttestationIdsKM3()
572 memcpy(result.ids->second_imei.bytes, request.second_imei.begin(), in SetAttestationIdsKM3()
576 keymaster_error_t err = WriteAttestationIds(result.ids.get(), true); in SetAttestationIdsKM3()
600 keymaster_error_t err = WriteAttestationIds(result.ids.get(), true); in SetAttestationIds()
/trusty/user/app/keymaster/ipc/
Dkeymaster_ipc.cpp310 auto ids = device->GetDeviceInfo(); in get_device_info() local
312 if (ids->encodedSize() > KEYMASTER_MAX_BUFFER_LENGTH) { in get_device_info()
316 ids_buf->reset(new (std::nothrow) uint8_t[ids->encodedSize()]); in get_device_info()
321 *buf_size = ids->encodedSize(); in get_device_info()
322 ids->encode(ids_buf->get(), ids_buf->get() + ids->encodedSize()); in get_device_info()
/trusty/kernel/lib/trusty/
Dipc_msg.c269 handle_id_t ids[MAX_MSG_HANDLES]; in user_msg_write_locked() local
271 rc = copy_from_user(&ids, msg->handles, in user_msg_write_locked()
278 rc = uctx_handle_get(uctx, ids[i], &item->handles[i]); in user_msg_write_locked()
/trusty/kernel/lib/libcxx-trusty/include/
D__external_threading149 // Returns non-zero if the thread ids are equal, otherwise 0