/trusty/user/app/avb/ |
D | avb_messages.cpp | 28 uint32_t RollbackIndexRequest::Serialize(uint8_t* payload, in Serialize() argument 30 if (payload + GetSerializedSize() > end) in Serialize() 32 memcpy(payload, &value_, sizeof(value_)); in Serialize() 33 payload += sizeof(value_); in Serialize() 34 memcpy(payload, &slot_, sizeof(slot_)); in Serialize() 35 payload += sizeof(slot_); in Serialize() 39 int RollbackIndexRequest::Deserialize(const uint8_t* payload, in Deserialize() argument 41 if (payload + GetSerializedSize() != end) in Deserialize() 43 memcpy(&value_, payload, sizeof(value_)); in Deserialize() 44 payload += sizeof(value_); in Deserialize() [all …]
|
D | avb_messages.h | 47 virtual uint32_t Serialize(uint8_t* payload, const uint8_t* end) const = 0; 52 virtual int Deserialize(const uint8_t* payload, const uint8_t* end) = 0; 68 uint32_t Serialize(uint8_t* payload, const uint8_t* end) const override; 69 int Deserialize(const uint8_t* payload, const uint8_t* end) override; 87 uint32_t Serialize(uint8_t* payload, const uint8_t* end) const override; 88 int Deserialize(const uint8_t* payload, const uint8_t* end) override; 102 uint32_t Serialize(uint8_t* payload, const uint8_t* end) const override { in Serialize() argument 105 int Deserialize(const uint8_t* payload, const uint8_t* end) override { in Deserialize() argument 118 uint32_t Serialize(uint8_t* payload, const uint8_t* end) const override; 119 int Deserialize(const uint8_t* payload, const uint8_t* end) override; [all …]
|
/trusty/user/base/lib/hwbcc/common/ |
D | common.cpp | 130 const cppbor::Map* payload = parsed_payload->asMap(); in validate_bcc_payload() local 131 CHECK_NOT_NULL(payload); in validate_bcc_payload() 133 CHECK(payload->size() >= 4); in validate_bcc_payload() 135 const cppbor::Tstr* issuer = payload->get(1)->asTstr(); in validate_bcc_payload() 136 const cppbor::Tstr* subject = payload->get(2)->asTstr(); in validate_bcc_payload() 137 const cppbor::Bstr* subject_key = payload->get(-4670552)->asBstr(); in validate_bcc_payload() 138 const cppbor::Bstr* key_usage = payload->get(-4670553)->asBstr(); in validate_bcc_payload() 175 const cppbor::Bstr* payload = bcc_entry->get(2)->asBstr(); in validate_bcc_entry() local 182 CHECK_NOT_NULL(payload); in validate_bcc_entry() 187 CHECK(validate_bcc_payload(payload, out_key)); in validate_bcc_entry() [all …]
|
/trusty/user/base/lib/system_state/rust/src/ |
D | lib.rs | 145 payload: __IncompleteArrayField::new(), in get_flag() 147 let payload = RequestPayload::GetFlag(system_state_get_flag_req { flag: flag as u32 }); in get_flag() localVariable 148 Self(header, payload) in get_flag() 201 let payload = in deserialize() localVariable 202 unsafe { &*(header.payload.as_ptr() as *const system_state_get_flag_resp) }; in deserialize() 203 Ok(Self { flag: payload.flag.try_into()?, value: payload.value }) in deserialize()
|
/trusty/user/base/lib/tipc/include/lib/tipc/ |
D | tipc.h | 92 const void* payload, 134 void* payload, in tipc_recv_hdr_payload() argument 136 return tipc_recv2(chan, hdr_sz, hdr, hdr_sz, payload, payload_sz); in tipc_recv_hdr_payload()
|
/trusty/user/base/interface/system_state/include/interface/system_state/ |
D | system_state.h | 107 uint8_t payload[0]; member 119 uint8_t payload[0]; member
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | lib.rs | 61 pub fn response_from(&self, status: u32, payload: Vec<u8>) -> HwWskResponse { in response_from() 62 HwWskResponse { status, cmd: self.hdr.cmd | hwwsk_cmd_HWWSK_CMD_RESP as u32, payload } in response_from() 196 payload: Vec<u8>, field 212 serializer.serialize_bytes(&self.payload) in serialize() 234 Ok(Self { status, cmd, payload: response_payload }) in deserialize() 353 if buf.len() < response.payload.len() { in create_key() 358 let res_buffer = &mut buf[..response.payload.len()]; in create_key() 359 res_buffer.copy_from_slice(&response.payload); in create_key() 399 if buf.len() < response.payload.len() { in export_key() 404 let res_buffer = &mut buf[..response.payload.len()]; in export_key() [all …]
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | lib.rs | 132 payload: __IncompleteArrayField::new(), in get_keyslot_data() 146 if keyslot_data.len() < response.payload.len() { in get_keyslot_data() 150 response.payload.len() in get_keyslot_data() 155 keyslot_data[..response.payload.len()].copy_from_slice(&response.payload[..]); in get_keyslot_data() 156 Ok(&keyslot_data[..response.payload.len()]) in get_keyslot_data() 236 if key_buf.len() != response.payload.len() { in derive() 240 response.payload.len() in derive() 245 key_buf.copy_from_slice(&response.payload[..]); in derive() 580 payload: Vec<u8>, field 603 payload: response_payload, in deserialize() [all …]
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | common.h | 44 const void* payload, 50 void* payload,
|
D | main.c | 130 const void* payload, in tipc_send_two_segments() argument 138 .iov_base = (void*)payload, in tipc_send_two_segments() 155 void* payload, in tipc_recv_two_segments() argument 173 .iov_base = payload, in tipc_recv_two_segments()
|
/trusty/user/base/lib/spi/srv/batch/ |
D | batch.c | 38 void* payload; in handle_xfer_args() local 50 payload = mb_advance_pos(shm, xfer_args_len); in handle_xfer_args() 51 if (!payload) { in handle_xfer_args() 56 tx = (xfer_args_flags & SPI_XFER_FLAGS_TX) ? payload : NULL; in handle_xfer_args() 57 rx = (xfer_args_flags & SPI_XFER_FLAGS_RX) ? payload : NULL; in handle_xfer_args()
|
/trusty/user/app/storage/ |
D | client_tipc.c | 418 void* payload; in client_handle_msg() local 431 payload = msg->payload; in client_handle_msg() 435 result = storage_tipc_file_delete(session, msg, payload, payload_len); in client_handle_msg() 438 result = storage_tipc_file_move(session, msg, payload, payload_len); in client_handle_msg() 441 return storage_tipc_file_open(tipc_session, msg, payload, payload_len); in client_handle_msg() 443 result = storage_tipc_file_close(session, msg, payload, payload_len); in client_handle_msg() 446 result = storage_tipc_file_write(session, msg, payload, payload_len); in client_handle_msg() 449 return storage_tipc_file_read(tipc_session, msg, payload, payload_len); in client_handle_msg() 451 return storage_tipc_file_list(tipc_session, msg, payload, payload_len); in client_handle_msg() 453 return storage_tipc_file_get_size(tipc_session, msg, payload, in client_handle_msg() [all …]
|
/trusty/user/base/lib/hwbcc/srv/ |
D | srv.c | 41 uint8_t payload[HWBCC_MAX_RESP_PAYLOAD_SIZE]; member 148 args->aad_size, resp.payload, sizeof(resp.payload), in handle_sign_data() 178 rc = hwbcc_ops->get_bcc(s, test_mode, resp.payload, sizeof(resp.payload), in handle_get_bcc() 208 rc = hwbcc_ops->get_dice_artifacts(s, context, resp.payload, in handle_get_dice_artifacts() 209 sizeof(resp.payload), &payload_size); in handle_get_dice_artifacts()
|
/trusty/user/base/lib/spi/client/ |
D | client.c | 366 void** payload, in spi_add_cmd() argument 372 assert(payload || !payload_len); in spi_add_cmd() 403 if (payload) { in spi_add_cmd() 411 *payload = mb_advance_pos(&dev->shm, payload_len); in spi_add_cmd() 412 assert(*payload); in spi_add_cmd() 436 void* payload; in spi_add_data_xfer_cmd() local 439 &payload, len); in spi_add_data_xfer_cmd() 449 *tx = payload; in spi_add_data_xfer_cmd() 452 *rx = payload; in spi_add_data_xfer_cmd()
|
/trusty/kernel/lib/ktipc/test/include/ |
D | ktipc_test.h | 39 uint8_t payload[]; member
|
/trusty/user/base/interface/keymaster/include/interface/keymaster/ |
D | keymaster.h | 40 uint8_t payload[0]; member
|
/trusty/user/app/gatekeeper/ipc/ |
D | gatekeeper_ipc.h | 38 uint8_t payload[0]; member
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | lib.rs | 154 payload: Vec<u8>, field 178 let (header, payload) = bytes.split_at(header_size); in deserialize() 185 let response_payload = Vec::try_alloc_from(payload)?; in deserialize() 192 Ok(Self { status: msg.status, cmd: msg.cmd, payload: response_payload }) in deserialize() 233 let payload_size = resp.payload.len(); in read_payload() 239 buf[..payload_size].copy_from_slice(&resp.payload); in read_payload()
|
/trusty/user/app/avb/ipc/ |
D | avb_ipc.h | 45 uint8_t payload[0]; member
|
/trusty/user/base/interface/storage/include/interface/storage/ |
D | storage.h | 429 uint8_t payload[0]; member 464 uint8_t payload[0]; member
|
/trusty/user/app/keymint/ |
D | rpc.rs | 84 payload: &[u8], in sign_data_in_cose_sign1() 104 payload, in sign_data_in_cose_sign1()
|
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/ |
D | tidl.h | 182 FixedPayload(const FixedPayload<S>& payload) { in FixedPayload() argument 183 memcpy(mData, payload.data(), S); in FixedPayload() 186 FixedPayload& operator=(const FixedPayload<S>& payload) { 187 memcpy(mData, payload.data(), S);
|
/trusty/user/base/interface/hwkey/include/interface/hwkey/ |
D | hwkey.h | 177 uint8_t payload[0]; member
|
/trusty/user/app/keymaster/ipc/ |
D | keymaster_ipc.h | 108 uint8_t payload[0]; member
|
/trusty/kernel/lib/ktipc/test/srv/ |
D | srv.c | 85 rc = ktipc_send(chan, req->payload, len); in test_handle_msg() 94 return queue_buffer(ctx, req->payload, len); in test_handle_msg()
|