Home
last modified time | relevance | path

Searched refs:message_info (Results 1 – 25 of 29) sorted by relevance

12

/external/openthread/tests/scripts/thread-cert/
Dtest_crypto.py101 message_info = common.MessageInfo()
102 message_info.source_mac_address = common.MacAddress.from_eui64(
105 message_info.source_ipv6 = "fe80::235:cc94:d77a:07e8"
106 message_info.destination_ipv6 = "ff02::2"
108 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=2,
112 message_info.aux_sec_hdr_bytes = convert_aux_sec_hdr_to_bytearray(message_info.aux_sec_hdr)
124 mle_msg = net_crypto_engine.decrypt(data, mic, message_info)
135 message_info = common.MessageInfo()
136 message_info.source_mac_address = common.MacAddress.from_eui64(
139 message_info.source_ipv6 = "fe80::235:cc94:d77a:07e8"
[all …]
Dnet_crypto.py54 def encrypt(self, data, message_info): argument
65 …auth_data = self._crypto_material_creator.create_key_and_nonce_and_authenticated_data(message_info)
72 def decrypt(self, enc_data, mic, message_info): argument
84 …auth_data = self._crypto_material_creator.create_key_and_nonce_and_authenticated_data(message_info)
125 def create_key_and_nonce_and_authenticated_data(self, message_info): argument
175 def create_key_and_nonce_and_authenticated_data(self, message_info): argument
176 _, mac_key = self._generate_keys(message_info.aux_sec_hdr.sequence_counter)
179 message_info.source_mac_address,
180 message_info.aux_sec_hdr.frame_counter,
181 message_info.aux_sec_hdr.security_level,
[all …]
Dmesh_cop.py135 def parse(self, data, message_info): argument
151 def parse(self, data, message_info): argument
174 def parse(self, data, message_info): argument
198 def parse(self, data, message_info): argument
199 len = message_info.length
213 def parse(self, data, message_info): argument
226 def parse(self, data, message_info): argument
239 def parse(self, data, message_info): argument
252 def parse(self, data, message_info): argument
281 def parse(self, data, message_info): argument
[all …]
Dtest_lowpan.py280 message_info = common.MessageInfo()
281 message_info.source_mac_address = common.MacAddress.from_eui64(
283 message_info.destination_mac_address = common.MacAddress.from_eui64(
292 actual_ipv6_packet = parser.parse(io.BytesIO(lowpan_packet), message_info)
311 message_info = common.MessageInfo()
312 message_info.source_mac_address = common.MacAddress.from_eui64(
314 message_info.destination_mac_address = common.MacAddress.from_eui64(
320 actual_ipv6_packet = parser.parse(io.BytesIO(lowpan_packet), message_info)
339 message_info = common.MessageInfo()
340 message_info.source_mac_address = common.MacAddress.from_eui64(
[all …]
Dtest_common.py59 message_info = common.MessageInfo()
60 message_info.source_ipv6 = source_ipv6
63 actual_source_ipv6 = message_info.source_ipv6
72 message_info = common.MessageInfo()
73 message_info.destination_ipv6 = destination_ipv6
76 actual_destination_ipv6 = message_info.destination_ipv6
88 message_info = common.MessageInfo()
89 message_info.source_mac_address = source_mac_address
92 actual_source_mac_address = message_info.source_mac_address
101 message_info = common.MessageInfo()
[all …]
Dmle.py133 def parse(self, data, message_info): argument
175 def parse(self, data, message_info): argument
204 def parse(self, data, message_info): argument
229 def parse(self, data, message_info): argument
254 def parse(self, data, message_info): argument
279 def parse(self, data, message_info): argument
304 def parse(self, data, message_info): argument
339 def parse(self, data, message_info): argument
383 def parse(self, data, message_info): argument
390 link_quality_and_route_data.append(self._lqrd_factory.parse(data, message_info))
[all …]
Dnetwork_data.py63 def parse(self, data, message_info): argument
77 message_info.stable = stable
78 tlv = factory.parse(io.BytesIO(value), message_info)
110 def parse(self, data, message_info): argument
124 def parse(self, data, message_info): argument
128 route = self._route_factory.parse(data, message_info)
160 def parse(self, data, message_info): argument
161 routes = self._routes_factory.parse(data, message_info)
163 return HasRoute(routes, message_info.stable)
222 def parse(self, data, message_info): argument
[all …]
Dlowpan.py218 def parse(self, data, next_header, message_info): argument
223 options = self._hop_by_hop_options_factory.parse(io.BytesIO(ext_header_data), message_info)
227 message_info.payload_length += len(ext_header)
255 def parse(self, data, message_info): argument
262 return factory.parse(data, next_header, message_info)
305 def parse(self, data, message_info): argument
748 def parse(self, data, message_info): argument
759 src_address = self._decompress_src_addr(iphc, message_info.source_mac_address, sci, data)
761 … dst_address = self._decompress_dst_addr(iphc, message_info.destination_mac_address, dci, data)
800 def decompress(self, data, message_info): argument
[all …]
Dipv6.py99 def parse(self, data, message_info): argument
903 def _parse_extension_headers(self, data, next_header, message_info): argument
909 extension_header = factory.parse(data, message_info)
917 def _parse_upper_layer_protocol(self, data, next_header, message_info): argument
920 return factory.parse(data, message_info)
922 def parse(self, data, message_info): argument
925 message_info.source_ipv6 = ipv6_header.source_address
926 message_info.destination_ipv6 = ipv6_header.destination_address
928 …der, extension_headers = self._parse_extension_headers(data, ipv6_header.next_header, message_info)
930 upper_layer_protocol = self._parse_upper_layer_protocol(data, next_header, message_info)
[all …]
Dnetwork_diag.py78 def parse(self, data, message_info): argument
80 while data.tell() < message_info.length:
145 def parse(self, data, message_info): argument
169 def parse(self, data, message_info): argument
193 def parse(self, data, message_info): argument
245 def parse(self, data, message_info): argument
247 while message_info.length > 0:
249 message_info.length -= 2
254 mode = mle.ModeFactory().parse(data, message_info)
255 message_info.length -= 1
[all …]
Dnetwork_layer.py81 def parse(self, data, message_info): argument
106 def parse(self, data, message_info): argument
131 def parse(self, data, message_info): argument
156 def parse(self, data, message_info): argument
181 def parse(self, data, message_info): argument
206 def parse(self, data, message_info): argument
236 def parse(self, data, message_info): argument
262 def parse(self, data, message_info): argument
275 def parse(self, data, message_info): argument
288 def parse(self, data, message_info): argument
[all …]
Dtlvs_parsing.py48 def parse(self, data, message_info): argument
64 def parse(self, data, message_info): argument
75 message_info.length = length
76 tlv = factory.parse(io.BytesIO(value), message_info)
Dmac802154.py327 message_info = MessageInfo()
328 message_info.aux_sec_hdr = aux_sec_header
329 message_info.aux_sec_hdr_bytes = aux_sec_hdr_bytes
330 message_info.extra_open_fields = extra_open_fields
331 message_info.mhr_bytes = mhr_bytes
342 message_info.open_payload_length = 1
345message_info.source_mac_address = DeviceDescriptors.get_extended(src_address).mac_address
347 message_info.source_mac_address = src_address.mac_address
350 …payload = MacPayload(bytearray(open_payload) + sec_obj.decrypt(private_payload, mic, message_info))
Dtest_ipv6.py660 message_info = any_message_info()
661 message_info.source_ipv6 = "ff::"
662 message_info.destination_address = "ff::"
667 factory.parse(io.BytesIO(ipv6_packet_data), message_info)
670 self.assertEqual("fd00:1234:4555::ff:fe00:1800", message_info.source_ipv6.compressed)
671 self.assertEqual("ff03::1", message_info.destination_ipv6.compressed)
1049 message_info = common.MessageInfo()
1050 message_info.src_port = any_port()
1051 message_info.dst_port = any_port()
1054 src_dst_port_based_payload_factories={message_info.src_port: BytesPayloadFactory()})
[all …]
Dtest_network_data.py388 message_info = common.MessageInfo()
389 message_info.stable = stable
392 actual_has_route = factory.parse(io.BytesIO(data), message_info)
524 message_info = common.MessageInfo()
527 actual_prefix = factory.parse(io.BytesIO(data), message_info)
790 message_info = common.MessageInfo()
791 message_info.stable = stable
794 actual_border_router = factory.parse(io.BytesIO(data), message_info)
874 message_info = common.MessageInfo()
875 message_info.stable = stable
[all …]
Dcoap.py127 def parse(self, data, message_info): argument
282 message_info, argument
287 self._message_info = message_info
392 def _parse_initial_byte(self, data, message_info): argument
401 def parse(self, data, message_info): argument
402 version, _type, token_length = self._parse_initial_byte(data, message_info)
408 options = self._options_factory.parse(data, message_info)
427 message_info,
Dtest_mle.py1710 message_info = common.MessageInfo()
1711 message_info.source_ipv6 = "fe80::10cf:d38b:3b61:5558"
1712 message_info.destination_ipv6 = "fe80::383e:9eed:7a01:36a5"
1714 message_info.source_mac_address = common.MacAddress.from_eui64(
1716 message_info.destination_mac_address = common.MacAddress.from_eui64(
1729 actual_mle_message = factory.parse(io.BytesIO(data), message_info)
1761 message_info = common.MessageInfo()
1762 message_info.source_ipv6 = "fe80::241c:b11b:7b62:caf1"
1763 message_info.destination_ipv6 = "ff02::1"
1765 message_info.source_mac_address = common.MacAddress.from_eui64(
[all …]
Dmessage.py591 message_info = common.MessageInfo()
592 message_info.source_mac_address = message.mac_header.src_address
593 message_info.destination_mac_address = message.mac_header.dest_address
598 ipv6_packet = self._lowpan_parser.parse(lowpan_payload, message_info)
Dtest_network_layer.py477 def parse(self, data, message_info): argument
Dtest_coap.py520 def parse(self, data, message_info): argument
Ddtls.py619 def parse(self, data, message_info): argument
/external/protobuf/src/google/protobuf/
Dextension_set_inl.h179 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
182 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
192 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
195 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
234 *extension.message_info.prototype, in ParseMessageSetItemTmpl()
237 *extension.message_info.prototype, in ParseMessageSetItemTmpl()
Dextension_set_heavy.cc290 output->message_info.prototype = in Find()
292 GOOGLE_CHECK(output->message_info.prototype != nullptr) in Find()
/external/cronet/third_party/protobuf/src/google/protobuf/
Dextension_set_inl.h179 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
182 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
192 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
195 *extension.message_info.prototype, in ParseFieldWithExtensionInfo()
234 *extension.message_info.prototype, in ParseMessageSetItemTmpl()
237 *extension.message_info.prototype, in ParseMessageSetItemTmpl()
Dextension_set_heavy.cc291 output->message_info.prototype = in Find()
293 GOOGLE_CHECK(output->message_info.prototype != nullptr) in Find()

12