Home
last modified time | relevance | path

Searched refs:security_level (Results 1 – 4 of 4) sorted by relevance

/openthread-3.6.0/tests/scripts/thread-cert/
Dnet_crypto.py145 def _create_nonce(self, eui64, frame_counter, security_level): argument
159 return bytes(eui64 + struct.pack(">LB", frame_counter, security_level))
183 message_info.aux_sec_hdr.security_level,
209 def _create_nonce(self, source_eui64, frame_counter, security_level): argument
223 return bytes(source_eui64[:8] + struct.pack(">LB", frame_counter, security_level))
247 message_info.aux_sec_hdr.security_level,
268 security_level, argument
281 self._security_level = security_level
316 def security_level(self): member in AuxiliarySecurityHeader
330 self.security_level,
[all …]
Dtest_crypto.py44 data = bytearray([aux_sec_hdr.security_level | ((aux_sec_hdr.key_id_mode & 0x03) << 3)])
109 security_level=5,
143 security_level=5,
173 security_level = 5
182 security_level=security_level,
281 security_level = any_security_level()
286 nonce = creator._create_nonce(source_eui64, frame_counter, security_level)
293 self.assertEqual(security_level, ord(nonce_bytes.read(1)))
338 …ack(">LB", message_info.aux_sec_hdr.frame_counter, message_info.aux_sec_hdr.security_level), nonce)
362 security_level = any_security_level()
[all …]
Dmac802154.py281 if aux_sec_header and aux_sec_header.security_level:
282 mic, payload_end = self._parse_mic(data, aux_sec_header.security_level)
390 security_level = security_control & 0x07
406 security_level,
412 def _parse_mic(self, data, security_level): argument
413 if security_level in (1, 5):
417 elif security_level in (2, 6):
421 elif security_level in (3, 7):
Dtest_mac802154.py241 self.assertEqual(5, frame.header.aux_sec_header.security_level)
275 self.assertEqual(5, frame.header.aux_sec_header.security_level)