Searched refs:key_id_mode (Results 1 – 18 of 18) sorted by relevance
/openthread-3.7.0/tests/scripts/thread-cert/ |
D | test_crypto.py | 44 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 …]
|
D | net_crypto.py | 267 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 …]
|
D | Cert_6_6_01_KeyIncrement.py | 98 … key_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)
|
D | Cert_6_6_02_KeyIncrementRollOver.py | 99 … key_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)
|
D | Cert_5_8_02_KeyIncrement.py | 102 … key_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)
|
D | Cert_5_8_03_KeyIncrementRollOver.py | 104 … key_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)
|
D | mac802154.py | 391 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,
|
D | Cert_6_1_06_REEDAttachLinkQuality.py | 153 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
|
D | Cert_5_1_09_REEDAttachConnectivity.py | 192 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
|
D | Cert_6_1_04_REEDAttachConnectivity.py | 172 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
|
D | Cert_6_1_02_REEDAttach.py | 161 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
|
D | Cert_6_1_01_RouterAttach.py | 139 p.wpan.aux_sec.key_id_mode == 0x2 193 p.wpan.aux_sec.key_id_mode == 0x2
|
D | Cert_9_2_12_Announce.py | 156 … 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)
|
D | Cert_6_5_02_ChildResetReattach.py | 184 p.wpan.aux_sec.key_id_mode == 0x2 222 p.wpan.aux_sec.key_id_mode == 0x2
|
D | command.py | 289 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
|
D | Cert_9_2_17_Orphan.py | 133 p.mle.tlv.type) and p.wpan.dst_pan == 0xffff and p.wpan.aux_sec.key_id_mode == 0x2)
|
D | test_mle.py | 369 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/ |
D | test_layer_fields.py | 148 self.assertIsInstanceOrNull(wpan.aux_sec.key_id_mode, int)
|