Home
last modified time | relevance | path

Searched refs:frame_counter (Results 1 – 8 of 8) sorted by relevance

/openthread-3.5.0/tests/scripts/thread-cert/
Dtest_crypto.py45 data += struct.pack("<L", aux_sec_hdr.frame_counter)
110 frame_counter=262165,
144 frame_counter=262165,
183frame_counter=any_frame_counter(),
280 frame_counter = any_frame_counter()
286 nonce = creator._create_nonce(source_eui64, frame_counter, security_level)
292 self.assertEqual(struct.pack(">L", frame_counter), nonce_bytes.read(4))
338 …struct.pack(">LB", message_info.aux_sec_hdr.frame_counter, message_info.aux_sec_hdr.security_level…
376 frame_counter = any_frame_counter()
379 …_sec_hdr_obj = net_crypto.AuxiliarySecurityHeader(key_id_mode, any_security_level(), frame_counter,
[all …]
Dnet_crypto.py145 def _create_nonce(self, eui64, frame_counter, security_level): argument
159 return bytes(eui64 + struct.pack(">LB", frame_counter, security_level))
182 message_info.aux_sec_hdr.frame_counter,
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))
246 message_info.aux_sec_hdr.frame_counter,
269 frame_counter, argument
282 self._frame_counter = frame_counter
320 def frame_counter(self): member in AuxiliarySecurityHeader
331 self.frame_counter,
[all …]
Dmle.py262 def __init__(self, frame_counter): argument
263 self._frame_counter = frame_counter
266 def frame_counter(self): member in LinkLayerFrameCounter
272 return self.frame_counter == other.frame_counter
275 return "LinkLayerFrameCounter(frame_counter={})".format(self.frame_counter)
281 frame_counter = struct.unpack(">I", data.read(4))[0]
282 return LinkLayerFrameCounter(frame_counter)
287 def __init__(self, frame_counter): argument
288 self._frame_counter = frame_counter
291 def frame_counter(self): member in MleFrameCounter
[all …]
Dmac802154.py388 security_control, frame_counter = struct.unpack("<BL", data.read(5))
407 frame_counter,
Dtest_mac802154.py240 self.assertEqual(0, frame.header.aux_sec_header.frame_counter)
274 self.assertEqual(0, frame.header.aux_sec_header.frame_counter)
Dtest_mle.py599 actual_link_layer_frame_counter = link_layer_frame_counter_obj.frame_counter
620 self.assertEqual(link_layer_frame_counter, actual_link_layer_frame_counter.frame_counter)
632 actual_mle_frame_counter = mle_frame_counter_obj.frame_counter
653 self.assertEqual(mle_frame_counter, actual_mle_frame_counter.frame_counter)
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.function197 data_t *source_address, data_t *frame_counter,
217 TEST_ASSERT( frame_counter->len == 4 );
219 memcpy( iv + source_address->len, frame_counter->x, frame_counter->len );
220 iv[source_address->len + frame_counter->len] = sec_level;
247 data_t *source_address, data_t *frame_counter,
268 TEST_ASSERT( frame_counter->len == 4 );
270 memcpy( iv + source_address->len, frame_counter->x, frame_counter->len );
271 iv[source_address->len + frame_counter->len] = sec_level;
/openthread-3.5.0/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py152 self.assertIsInstanceOrNull(wpan.aux_sec.frame_counter, int)