Searched refs:aux_sec_hdr (Results 1 – 6 of 6) sorted by relevance
/external/openthread/tests/scripts/thread-cert/ |
D | test_crypto.py | 43 def convert_aux_sec_hdr_to_bytearray(aux_sec_hdr): argument 44 data = bytearray([aux_sec_hdr.security_level | ((aux_sec_hdr.key_id_mode & 0x03) << 3)]) 45 data += struct.pack("<L", aux_sec_hdr.frame_counter) 46 data += aux_sec_hdr.key_id 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) 142 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=2, 146 message_info.aux_sec_hdr_bytes = convert_aux_sec_hdr_to_bytearray(message_info.aux_sec_hdr) 181 message_info.aux_sec_hdr = net_crypto.AuxiliarySecurityHeader(key_id_mode=key_id_mode, 185 message_info.aux_sec_hdr_bytes = convert_aux_sec_hdr_to_bytearray(message_info.aux_sec_hdr) [all …]
|
D | net_crypto.py | 176 _, mac_key = self._generate_keys(message_info.aux_sec_hdr.sequence_counter) 180 message_info.aux_sec_hdr.frame_counter, 181 message_info.aux_sec_hdr.security_level, 240 mle_key, _ = self._generate_keys(message_info.aux_sec_hdr.sequence_counter) 244 message_info.aux_sec_hdr.frame_counter, 245 message_info.aux_sec_hdr.security_level, 373 … aux_sec_hdr = AuxiliarySecurityHeader(key_id_mode, security_level, frame_counter, key_id_bytes) 376 message_info.aux_sec_hdr = aux_sec_hdr 378 return aux_sec_hdr
|
D | mle.py | 1263 def __init__(self, aux_sec_hdr, command, mic): argument 1265 self._aux_sec_hdr = aux_sec_hdr 1269 def aux_sec_hdr(self): member in MleMessageSecured 1277 …return "MleMessageSecured(aux_sec_hdr={}, command={}, mic=\"{}\")".format(self.aux_sec_hdr, self.c… 1289 aux_sec_hdr = self._aux_sec_hdr_factory.parse(data, message_info) 1300 return MleMessageSecured(aux_sec_hdr, command, mic)
|
D | common.py | 56 self.aux_sec_hdr = None
|
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: 452 assert command_msg.mle.aux_sec_hdr.key_id_mode == key_id_mode
|
D | mac802154.py | 328 message_info.aux_sec_hdr = aux_sec_header
|