Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 32) sorted by relevance

12

/openthread-3.7.0/tests/unit/
Dtest_util.cpp41 uint16_t counter; in DumpBuffer() local
46 counter = 0; in DumpBuffer()
52 charBuff[counter] = isprint(byte) ? static_cast<char>(byte) : '.'; in DumpBuffer()
53 counter++; in DumpBuffer()
55 if (counter == kBytesPerLine) in DumpBuffer()
57 charBuff[counter] = 0; in DumpBuffer()
59 counter = 0; in DumpBuffer()
63 charBuff[counter] = 0; in DumpBuffer()
65 while (counter++ < kBytesPerLine) in DumpBuffer()
/openthread-3.7.0/src/core/mac/
Dmac_types.cpp205 uint32_t counter = 0; in Get() local
211 counter = m154Counter; in Get()
217 counter = mTrelCounter; in Get()
222 return counter; in Get()
247 uint32_t counter = 0; in GetMaximum() local
250 counter = Max(counter, m154Counter); in GetMaximum()
254 counter = Max(counter, mTrelCounter); in GetMaximum()
257 return counter; in GetMaximum()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_chacha20.function13 int counter,
29 TEST_ASSERT(mbedtls_chacha20_crypt(key_str->x, nonce_str->x, counter, src_str->len, src_str->x,
42 TEST_ASSERT(mbedtls_chacha20_starts(&ctx, nonce_str->x, counter) == 0);
56 TEST_ASSERT(mbedtls_chacha20_starts(&ctx, nonce_str->x, counter) == 0);
Dtest_suite_ctr_drbg.data1109 Increment counter rollover
1112 Increment counter 00
1115 Increment counter ff00
1118 Increment counter ff0000
1121 Increment counter ff000000
1124 Increment counter ff00000000
1127 Increment counter ff0000000000
1130 Increment counter ff000000000000
1133 Increment counter 01
1136 Increment counter ff01
[all …]
Dtest_suite_ssl.function1271 * 2) The record counter sometimes determines the IV.
2760 srv_pattern.counter = 0;
2761 cli_pattern.counter = 0;
2779 TEST_ASSERT(srv_pattern.counter >= 1);
2783 TEST_ASSERT(cli_pattern.counter >= 1);
3099 srv_pattern.counter = 0;
3144 TEST_EQUAL(srv_pattern.counter, 1);
3878 TEST_EQUAL(server_pattern.counter, 1);
4991 TEST_EQUAL(server_pattern.counter, 1);
4992 server_pattern.counter = 0;
[all …]
Dtest_suite_entropy.function53 * Just resetting the counter. New sources will overwrite existing ones.
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dchacha20.h117 uint32_t counter);
183 uint32_t counter,
Dctr_drbg.h171 unsigned char MBEDTLS_PRIVATE(counter)[16]; /*!< The counter (V). */
/openthread-3.7.0/third_party/mbedtls/repo/library/
Dctr_drbg.c350 mbedtls_ctr_increment_counter(ctx->counter); in ctr_drbg_update_internal()
357 ctx->counter, p)) != 0) { in ctr_drbg_update_internal()
361 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in ctr_drbg_update_internal()
391 memcpy(ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, in ctr_drbg_update_internal()
653 mbedtls_ctr_increment_counter(ctx->counter); in mbedtls_ctr_drbg_random_with_add()
660 ctx->counter, locals.tmp)) != 0) { in mbedtls_ctr_drbg_random_with_add()
667 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in mbedtls_ctr_drbg_random_with_add()
Dpkcs5.c281 unsigned char counter[4]; in pkcs5_pbkdf2_hmac() local
283 memset(counter, 0, 4); in pkcs5_pbkdf2_hmac()
284 counter[3] = 1; in pkcs5_pbkdf2_hmac()
302 if ((ret = mbedtls_md_hmac_update(ctx, counter, 4)) != 0) { in pkcs5_pbkdf2_hmac()
343 if (++counter[i - 1] != 0) { in pkcs5_pbkdf2_hmac()
Dchacha20.c183 uint32_t counter) in mbedtls_chacha20_starts() argument
186 ctx->state[12] = counter; in mbedtls_chacha20_starts()
247 uint32_t counter, in mbedtls_chacha20_crypt() argument
262 ret = mbedtls_chacha20_starts(&ctx, nonce, counter); in mbedtls_chacha20_crypt()
Drsa.c1620 unsigned char counter[4]; in mgf_mask() local
1643 memset(counter, 0, 4); in mgf_mask()
1660 if ((ret = mbedtls_md_update(&md_ctx, counter, 4)) != 0) { in mgf_mask()
1671 counter[3]++; in mgf_mask()
/openthread-3.7.0/third_party/tcplp/bsdtcp/
Dtcp_fastopen.c494 unsigned int *counter; in tcp_fastopen_alloc_counter()
495 counter = uma_zalloc(V_counter_zone, M_NOWAIT); in tcp_fastopen_alloc_counter()
496 if (counter) in tcp_fastopen_alloc_counter()
497 *counter = 1; in tcp_fastopen_alloc_counter()
498 return (counter); in tcp_fastopen_alloc_counter()
504 tcp_fastopen_decrement_counter(unsigned int *counter) in tcp_fastopen_decrement_counter() argument
507 if (*counter == 1) in tcp_fastopen_decrement_counter()
508 uma_zfree(V_counter_zone, counter); in tcp_fastopen_decrement_counter()
510 atomic_subtract_int(counter, 1); in tcp_fastopen_decrement_counter()
/openthread-3.7.0/tests/toranj/
Dstart.sh56 counter=0
64 if [ "$counter" -lt 7 ]; then
65 counter=$((counter + 1))
66 echo Attempt $counter running "$1" failed. Trying again.
/openthread-3.7.0/src/cli/
Dcli.cpp2053 for (const BrCounterName &counter : kCounterNames) in OutputBorderRouterCounters() local
2055 OutputFormat("%s:", counter.mName); in OutputBorderRouterCounters()
2057 … Uint64ToString((brCounters->*counter.mPacketsAndBytes).mPackets, uint64StringBuffer)); in OutputBorderRouterCounters()
2058 …OutputLine(" Bytes %s", Uint64ToString((brCounters->*counter.mPacketsAndBytes).mBytes, uint64Strin… in OutputBorderRouterCounters()
2233 for (const MacCounterName &counter : kTxCounterNames) in Process() local
2235 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2240 for (const MacCounterName &counter : kRxCounterNames) in Process() local
2242 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2307 for (const MleCounterName &counter : kCounterNames) in Process() local
2309 OutputLine("%s: %u", counter.mName, mleCounters->*counter.mValuePtr); in Process()
[all …]
DREADME.md66 - [keysequence](#keysequence-counter)
486 Reset the message buffer counter tracking maximum number buffers in use at the same time.
847 Get the current value of supervision check timeout failure counter.
849 The counter tracks the number of supervision check failures on the child. It is incremented when th…
859 Reset the supervision check timeout failure counter to zero.
972 Get the supported counter names.
985 Get the counter value.
1065 Reset the counter value.
1817 ### keysequence counter
1822 > keysequence counter
[all …]
DREADME_BR.md100 Get the Border Router counter.
/openthread-3.7.0/src/core/net/
Dip6.cpp1434 otPacketsAndBytes *counter = nullptr; in UpdateBorderRoutingCounters() local
1452 counter = &mBorderRoutingCounters.mInboundMulticast; in UpdateBorderRoutingCounters()
1456 counter = &mBorderRoutingCounters.mInboundUnicast; in UpdateBorderRoutingCounters()
1469 counter = &mBorderRoutingCounters.mOutboundMulticast; in UpdateBorderRoutingCounters()
1473 counter = &mBorderRoutingCounters.mOutboundUnicast; in UpdateBorderRoutingCounters()
1479 if (counter) in UpdateBorderRoutingCounters()
1481 counter->mPackets += 1; in UpdateBorderRoutingCounters()
1482 counter->mBytes += aMessageLength; in UpdateBorderRoutingCounters()
Ddns_client.cpp178 for (uint16_t counter = 0; counter < kMaxCnameAliasNameChanges; counter++) in CheckForHostNameAlias() local
/openthread-3.7.0/src/core/thread/
Dmle.cpp650 uint16_t counter = mAttachCounter - 1; in GetAttachStartDelay() local
653 if ((counter < BitSizeOf(ratio)) && ((1UL << counter) <= ratio)) in GetAttachStartDelay()
656 delay <<= counter; in GetAttachStartDelay()
4502 uint32_t counter; in AppendLinkFrameCounterTlv() local
4509 counter = Get<KeyManager>().GetMaximumMacFrameCounter(); in AppendLinkFrameCounterTlv()
4512 Get<KeyManager>().SetAllMacFrameCounters(counter, /* aSetIfLarger */ true); in AppendLinkFrameCounterTlv()
4515 return Tlv::Append<LinkFrameCounterTlv>(*this, counter); in AppendLinkFrameCounterTlv()
4574 uint8_t counter = 0; in AppendAddressRegistrationTlv() local
4585 counter++; in AppendAddressRegistrationTlv()
4594 counter++; in AppendAddressRegistrationTlv()
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/tests/include/test/
Dssl_helpers.h87 size_t counter; member
/openthread-3.7.0/tests/scripts/thread-cert/
Dnode.py401 def _process_traffic_counters(self, counter): argument
404 'packets': counter[0],
405 'bytes': counter[1],
408 'packets': counter[2],
409 'bytes': counter[3],
413 def _process_packet_counters(self, counter): argument
414 return {'4to6': {'packets': counter[0]}, '6to4': {'packets': counter[1]}}
/openthread-3.7.0/tests/toranj/cli/
Dcli.py477 counter = int(m.group(1))
481 return counter
/openthread-3.7.0/tools/otci/otci/
Dotci.py431 def set_key_sequence_counter(self, counter: int):
2177 counter = Counter()
2180 counter[k] = int(v)
2182 return counter
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/psa-thread-safety/
Dpsa-thread-safety.md159 Each key slot has a state variable and a `registered_readers` counter. These two variables dictate …
231 …'s state is `PSA_SLOT_PENDING_DELETION` and the slot's registered reader counter is equal to 1. Th…

12