Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 25 of 48) sorted by relevance

12

/tools/netsim/rust/daemon/src/
Dffi.rs32 fn handle_request_cxx(chip_id: u32, packet: &CxxVector<u8>, packet_type: u8); in handle_request_cxx()
35 fn handle_response_cxx(chip_id: u32, packet: &CxxVector<u8>, packet_type: u8); in handle_response_cxx()
61 read_fn: fn(stream_id: u32, proto_bytes: &[u8]), in ReadPacketResponseLoop()
92 packet_type: u8, in receive_link_layer_packet()
93 packet: &[u8], in receive_link_layer_packet()
113 packet: &CxxVector<u8>, in report_invalid_packet_cxx()
124 fn HandleBtRequestCxx(rootcanal_id: u32, packet_type: u8, packet: &Vec<u8>); in HandleBtRequestCxx()
133 fn SendLinkLayerLePacket(self: &RustBluetoothChip, packet: &[u8], tx_power: i8); in SendLinkLayerLePacket()
139 pub fn GetCxx(rootcanal_id: u32) -> Vec<u8>; in GetCxx()
184 pub fn Start(proto_bytes: &[u8], instance_num: u16); in Start()
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/rkp/
Dprotected_data.rs21 challenge: &[u8], in from_cose_encrypt()
23 tag: &[u8], in from_cose_encrypt()
74 plaintext_cbor: &[u8], in from_cbor_bytes()
75 challenge: &[u8], in from_cbor_bytes()
77 tag: &[u8], in from_cbor_bytes()
116 challenge: &[u8], in validate_mac_key()
118 tag: &[u8], in validate_mac_key()
121 ) -> Result<Vec<u8>> { in validate_mac_key()
/tools/netsim/rust/daemon/src/wireless/
Dpacket.rs40 fn response(&mut self, packet: Bytes, packet_type: u8); in response()
106 pub fn handle_response_cxx(chip_id: u32, packet: &cxx::CxxVector<u8>, packet_type: u8) { in handle_response_cxx()
147 pub fn handle_request(chip_id: ChipIdentifier, packet: &Bytes, packet_type: u8) { in handle_request()
166 pub fn handle_request_cxx(chip_id: u32, packet: &cxx::CxxVector<u8>, packet_type: u8) { in handle_request_cxx()
177 fn response(&mut self, _packet: Bytes, _packet_type: u8) {} in response()
/tools/netsim/rust/daemon/src/http_server/
Dserver_response.rs39 fn put_chunk(&mut self, chunk: &[u8]); in put_chunk()
42 fn put_ok_with_vec(&mut self, mime_type: &str, body: Vec<u8>, headers: StrHeaders); in put_ok_with_vec()
56 pub fn put_response(&mut self, response: Response<Vec<u8>>) { in put_response()
76 pub fn get_response(self) -> Option<Response<Vec<u8>>> { in get_response()
99 fn put_chunk(&mut self, chunk: &[u8]) { in put_chunk()
120 fn put_ok_with_vec(&mut self, mime_type: &str, body: Vec<u8>, headers: StrHeaders) { in put_ok_with_vec()
137 fn new_ok(content_type: &str, body: Vec<u8>) -> Response<Vec<u8>> { in new_ok()
146 fn add_headers(response: &mut Response<Vec<u8>>, headers: StrHeaders) { in add_headers()
Dhttp_handlers.rs122 fn handle_index(request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_index()
126 fn handle_static(request: &Request<Vec<u8>>, path: &str, writer: ResponseWritable) { in handle_static()
131 fn handle_version(_request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_version()
136 fn handle_dev(request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_dev()
Dhttp_router.rs46 pub fn handle_request(&self, request: &Request<Vec<u8>>, writer: ResponseWritable) { in handle_request()
103 fn handle_index(_request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_index()
107 fn handle_user(_request: &Request<Vec<u8>>, user_id: &str, writer: ResponseWritable) { in handle_user()
112 fn handle_query(request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_query()
/tools/security/remote_provisioning/hwtrust/src/cbor/
Dpublickey.rs101 fn adjust_coord(mut coordinate: Vec<u8>, length: usize) -> Result<Vec<u8>> { in adjust_coord()
156 fn pkey_from_ec_coords(nid: Nid, x: &[u8], y: &[u8]) -> Result<PKey<Public>> { in pkey_from_ec_coords()
212 fn get_label_value_as_bytes(key: &CoseKey, label: Label) -> Result<&[u8]> { in get_label_value_as_bytes()
219 fn ec_cose_signature_to_der(kind: SignatureKind, signature: &[u8]) -> Result<Vec<u8>> { in ec_cose_signature_to_der()
272 fn ec_der_signature_to_cose(kind: SignatureKind, signature: &[u8]) -> Vec<u8> { in ec_der_signature_to_cose()
396 first_byte_check: fn(&[u8], &[u8]) -> bool, in check_coordinate_lengths_and_first_byte()
427 fn check(x: &[u8], y: &[u8]) -> bool { in from_ec2_pkey_with_leading_zeros()
435 fn check(x: &[u8], y: &[u8]) -> bool { in from_ec2_pkey_with_high_bits_set()
/tools/security/remote_provisioning/hwtrust/cxxbridge/
Dlib.rs67 chain: &[u8], in verify_dice_chain()
74 fn get_dice_chain_public_key(chain: &DiceChain, n: usize) -> Vec<u8>; in get_dice_chain_public_key()
95 csr: &[u8], in validate_csr()
109 fn get_csr_payload_from_csr(csr: &Csr) -> Vec<u8>; in get_csr_payload_from_csr()
156 chain: &[u8], in verify_dice_chain()
185 fn get_dice_chain_public_key(chain: &DiceChain, n: usize) -> Vec<u8> { in get_dice_chain_public_key()
276 csr: &[u8], in validate_csr()
322 fn get_csr_payload_from_csr(csr: &Csr) -> Vec<u8> { in get_csr_payload_from_csr()
/tools/netsim/rust/daemon/src/captures/
Dpcap_util.rs120 packet: &[u8], in wrap_bt_packet()
121 ) -> Vec<u8> { in wrap_bt_packet()
133 packet: &[u8], in append_record()
155 packet: &[u8], in append_record_pcapng()
Dcaptures_handler.rs210 pub fn handle_capture(request: &Request<Vec<u8>>, param: &str, writer: ResponseWritable) { in handle_capture()
224 request: &Request<Vec<u8>>, in handle_capture_internal()
254 packet: &[u8], in handle_packet()
/tools/netsim/rust/daemon/src/bluetooth/
Dchip.rs27 packet_type: u8, in receive_link_layer_packet()
28 packet: &[u8], in receive_link_layer_packet()
/tools/netsim/rust/daemon/src/transport/
Dwebsocket.rs45 pub fn handle_websocket(request: &Request<Vec<u8>>, param: &str, writer: ResponseWritable) { in handle_websocket()
76 fn response(&mut self, packet: Bytes, packet_type: u8) { in response()
Dgrpc.rs31 fn response(&mut self, packet: Bytes, packet_type: u8) { in response()
Dfd.rs48 fn response(&mut self, packet: Bytes, packet_type: u8) { in response()
301 fn connector_grpc_read_callback(stream_id: u32, proto_bytes: &[u8]) { in connector_grpc_read_callback()
Dsocket.rs46 fn response(&mut self, packet: Bytes, packet_type: u8) { in response()
/tools/security/remote_provisioning/hwtrust/src/
Dcbor.rs26 fn serialize(value: Value) -> Vec<u8> { in serialize()
32 fn canonicalize_map(value: Value) -> Result<Vec<u8>, CiboriumError> { in canonicalize_map()
Deek.rs84 fn kdf_party_info<T: HasPublic>(identity: &[u8], key: &PKeyRef<T>) -> Result<PartyInfo> { in kdf_party_info()
92 fn raw_key_bytes<T: HasPublic>(key: &PKeyRef<T>) -> Result<Vec<u8>> { in raw_key_bytes()
/tools/netsim/rust/cli/src/
Dfile_handler.rs28 fn handle_chunk(&self, chunk: &[u8]) { in handle_chunk()
Dgrpc_client.rs16 fn handle_chunk(&self, chunk: &[u8]) { in handle_chunk()
24 fn handle_chunk(&self, chunk: &[u8]); in handle_chunk()
/tools/netsim/rust/proto/src/
Dpacket_streamer.rs148 pub fn packet(&self) -> &[u8] { in packet()
167 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet()
172 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet()
184 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet()
494 pub fn packet(&self) -> &[u8] { in packet()
513 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet()
518 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet()
530 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet()
/tools/netsim/rust/daemon/src/wifi/
Dradiotap.rs69 pub fn into_pcap(packet: &[u8]) -> Option<Vec<u8>> { in into_pcap()
80 pub fn frame_into_pcap(frame: Frame) -> anyhow::Result<Vec<u8>> { in frame_into_pcap()
Dmdns_forwarder.rs35 impl From<MacAddress> for [u8; 6] { implementation
186 fn create_ethernet_frame(packet: &[u8], ip_addr: &Ipv4Addr) -> anyhow::Result<Vec<u8>> { in create_ethernet_frame()
/tools/security/remote_provisioning/hwtrust/src/dice/
Dentry.rs57 pub fn code_desc(&self) -> Option<&[u8]> { in code_desc()
62 pub fn code_hash(&self) -> &[u8] { in code_hash()
72 pub fn config_hash(&self) -> Option<&[u8]> { in config_hash()
77 pub fn authority_desc(&self) -> Option<&[u8]> { in authority_desc()
82 pub fn authority_hash(&self) -> &[u8] { in authority_hash()
302 pub fn extensions(&self) -> &[(i64, Vec<u8>)] { in extensions()
/tools/netsim/rust/packets/src/
Dieee80211.rs79 impl From<MacAddress> for [u8; 6] { implementation
131 fn to_vec(self) -> anyhow::Result<Vec<u8>> { in to_vec()
148 pub fn from_ieee8023(packet: &[u8], bssid: MacAddress) -> anyhow::Result<Ieee80211> { in from_ieee8023()
201 pub fn get_aad(&self) -> Vec<u8> { in get_aad()
254 pub fn get_qos_tid(&self) -> u8 { in get_qos_tid()
477 fn get_payload(&self) -> Vec<u8> { in get_payload()
557 pub fn to_ieee8023(&self) -> anyhow::Result<Vec<u8>> { in to_ieee8023()
/tools/netsim/rust/http-proxy/src/
Ddns_manager.rs74 pub fn add_from_ethernet_slice(&self, packet: &[u8]) { in add_from_ethernet_slice()

12