Home
last modified time | relevance | path

Searched refs:key_id_mode (Results 1 – 18 of 18) sorted by relevance

/openthread-3.7.0/tests/scripts/thread-cert/
Dtest_crypto.py44 data = bytearray([aux_sec_hdr.security_level | ((aux_sec_hdr.key_id_mode & 0x03) << 3)])
65 def any_key_id(key_id_mode): argument
66 if key_id_mode == 2:
73 key_id_mode = any_key_id_mode()
74 key_id = any_key_id(key_id_mode)
76 …return net_crypto.AuxiliarySecurityHeader(key_id_mode, any_security_level(), any_frame_counter(), …
108 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=2,
142 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=2,
172 key_id_mode = 2
181 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=key_id_mode,
[all …]
Dnet_crypto.py267 key_id_mode, argument
280 self._key_id_mode = key_id_mode
290 if self.key_id_mode == 0:
293 elif self.key_id_mode == 1:
297 elif self.key_id_mode == 2:
303 raise ValueError("Unsupported Key Index Mode: {}".format(self.key_id_mode))
312 def key_id_mode(self): member in AuxiliarySecurityHeader
329 self.key_id_mode,
355 key_id_mode = (security_control_byte >> 3) & 0x03
357 return security_level, key_id_mode
[all …]
DCert_6_6_01_KeyIncrement.py98key_id_mode == 2 and p.wpan.aux_sec.key_source == 0)
104 …lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1 and p.wpan.dst16 == pv…
111 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
118 …lambda p: p.wpan.aux_sec.key_index == 2 and p.wpan.aux_sec.key_id_mode == 1 and p.wpan.dst16 == pv…
125 lambda p: p.wpan.aux_sec.key_index == 2 and p.wpan.aux_sec.key_id_mode == 1)
DCert_6_6_02_KeyIncrementRollOver.py99key_id_mode == 2 and p.wpan.aux_sec.key_source == 127)
105 …lambda p: p.wpan.aux_sec.key_index == 128 and p.wpan.aux_sec.key_id_mode == 1 and p.wpan.dst16 == …
112 lambda p: p.wpan.aux_sec.key_index == 128 and p.wpan.aux_sec.key_id_mode == 1)
119 …lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1 and p.wpan.dst16 == pv…
126 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
DCert_5_8_02_KeyIncrement.py102key_id_mode == 2 and p.wpan.aux_sec.key_source == 0)
110 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
116 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
123 lambda p: p.wpan.aux_sec.key_index == 2 and p.wpan.aux_sec.key_id_mode == 1)
129 lambda p: p.wpan.aux_sec.key_index == 2 and p.wpan.aux_sec.key_id_mode == 1)
DCert_5_8_03_KeyIncrementRollOver.py104key_id_mode == 2 and p.wpan.aux_sec.key_source == 127)
112 lambda p: p.wpan.aux_sec.key_index == 128 and p.wpan.aux_sec.key_id_mode == 1)
118 lambda p: p.wpan.aux_sec.key_index == 128 and p.wpan.aux_sec.key_id_mode == 1)
126 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
132 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
Dmac802154.py391 key_id_mode = (security_control & 0x18) >> 3
393 if key_id_mode == 0:
395 elif key_id_mode == 1:
397 elif key_id_mode == 2:
399 elif key_id_mode == 3:
405 key_id_mode,
DCert_6_1_06_REEDAttachLinkQuality.py153 p.wpan.aux_sec.key_id_mode == 0x2
193 p.wpan.aux_sec.key_id_mode == 0x2
236 p.wpan.aux_sec.key_id_mode == 0x2
DCert_5_1_09_REEDAttachConnectivity.py192 p.wpan.aux_sec.key_id_mode == 0x2
233 p.wpan.aux_sec.key_id_mode == 0x2
267 p.wpan.aux_sec.key_id_mode == 0x2
DCert_6_1_04_REEDAttachConnectivity.py172 p.wpan.aux_sec.key_id_mode == 0x2
199 p.wpan.aux_sec.key_id_mode == 0x2
254 p.wpan.aux_sec.key_id_mode == 0x2
DCert_6_1_02_REEDAttach.py161 p.wpan.aux_sec.key_id_mode == 0x2
197 p.wpan.aux_sec.key_id_mode == 0x2
250 p.wpan.aux_sec.key_id_mode == 0x2
DCert_6_1_01_RouterAttach.py139 p.wpan.aux_sec.key_id_mode == 0x2
193 p.wpan.aux_sec.key_id_mode == 0x2
DCert_9_2_12_Announce.py156 … 0xffff and p.wpan.aux_sec.key_id_mode == 0x2 and p.wpan.aux_sec.key_source == 0x00000000ffffffff)
167 … 0xffff and p.wpan.aux_sec.key_id_mode == 0x2 and p.wpan.aux_sec.key_source == 0x00000000ffffffff)
DCert_6_5_02_ChildResetReattach.py184 p.wpan.aux_sec.key_id_mode == 0x2
222 p.wpan.aux_sec.key_id_mode == 0x2
Dcommand.py289 if command_msg.mle.aux_sec_hdr.key_id_mode != 0x2:
333 if command_msg.mle.aux_sec_hdr.key_id_mode != 0x2:
448 def check_secure_mle_key_id_mode(command_msg, key_id_mode): argument
452 assert command_msg.mle.aux_sec_hdr.key_id_mode == key_id_mode
DCert_9_2_17_Orphan.py133 p.mle.tlv.type) and p.wpan.dst_pan == 0xffff and p.wpan.aux_sec.key_id_mode == 0x2)
Dtest_mle.py369 def any_key_id(key_id_mode): argument
370 if key_id_mode == 0:
372 elif key_id_mode == 1:
374 elif key_id_mode == 2:
376 elif key_id_mode == 3:
/openthread-3.7.0/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py148 self.assertIsInstanceOrNull(wpan.aux_sec.key_id_mode, int)