Home
last modified time | relevance | path

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

12

/openthread-latest/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-latest/src/core/mac/
Dmac_types.cpp236 uint32_t counter = 0; in Get() local
242 counter = m154Counter; in Get()
248 counter = mTrelCounter; in Get()
253 return counter; in Get()
278 uint32_t counter = 0; in GetMaximum() local
281 counter = Max(counter, m154Counter); in GetMaximum()
285 counter = Max(counter, mTrelCounter); in GetMaximum()
288 return counter; in GetMaximum()
/openthread-latest/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-latest/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-latest/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-latest/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-latest/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-latest/src/cli/
Dcli.cpp697 for (const BaCounterName &counter : kBaCounterNames) in OutputBorderAgentCounters() local
699 OutputLine("%s: %lu", counter.mName, ToUlong(aCounters.*counter.mValuePtr)); in OutputBorderAgentCounters()
2172 for (const BrCounterName &counter : kCounterNames) in OutputBorderRouterCounters() local
2174 OutputFormat("%s:", counter.mName); in OutputBorderRouterCounters()
2176 … Uint64ToString((brCounters->*counter.mPacketsAndBytes).mPackets, uint64StringBuffer)); in OutputBorderRouterCounters()
2177 …OutputLine(" Bytes %s", Uint64ToString((brCounters->*counter.mPacketsAndBytes).mBytes, uint64Strin… in OutputBorderRouterCounters()
2352 for (const MacCounterName &counter : kTxCounterNames) in Process() local
2354 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2359 for (const MacCounterName &counter : kRxCounterNames) in Process() local
2361 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
[all …]
DREADME.md67 - [keysequence](#keysequence-counter)
483 Get the border agent counter values.
538 Reset the message buffer counter tracking maximum number buffers in use at the same time.
899 Get the current value of supervision check timeout failure counter.
901 The counter tracks the number of supervision check failures on the child. It is incremented when th…
911 Reset the supervision check timeout failure counter to zero.
1024 Get the supported counter names.
1037 Get the counter value.
1118 Reset the counter value.
1882 ### keysequence counter
[all …]
DREADME_BR.md102 Get the Border Router counter.
/openthread-latest/src/core/net/
Dip6.cpp1407 otPacketsAndBytes *counter = nullptr; in UpdateBorderRoutingCounters() local
1427 counter = &mBrCounters.mInboundMulticast; in UpdateBorderRoutingCounters()
1431 counter = &mBrCounters.mInboundUnicast; in UpdateBorderRoutingCounters()
1446 counter = &mBrCounters.mOutboundMulticast; in UpdateBorderRoutingCounters()
1450 counter = &mBrCounters.mOutboundUnicast; in UpdateBorderRoutingCounters()
1456 if (counter) in UpdateBorderRoutingCounters()
1458 counter->mPackets++; in UpdateBorderRoutingCounters()
1459 counter->mBytes += aMessageLength; in UpdateBorderRoutingCounters()
Ddns_client.cpp170 for (uint16_t counter = 0; counter < kMaxCnameAliasNameChanges; counter++) in CheckForHostNameAlias() local
/openthread-latest/src/core/thread/
Dmle.cpp659 uint16_t counter = mAttachCounter - 1; in GetAttachStartDelay() local
662 if ((counter < BitSizeOf(ratio)) && ((1UL << counter) <= ratio)) in GetAttachStartDelay()
665 delay <<= counter; in GetAttachStartDelay()
4880 uint32_t counter; in AppendLinkFrameCounterTlv() local
4887 counter = Get<KeyManager>().GetMaximumMacFrameCounter(); in AppendLinkFrameCounterTlv()
4890 Get<KeyManager>().SetAllMacFrameCounters(counter, /* aSetIfLarger */ true); in AppendLinkFrameCounterTlv()
4893 return Tlv::Append<LinkFrameCounterTlv>(*this, counter); in AppendLinkFrameCounterTlv()
4963 uint8_t counter = 0; in AppendAddressRegistrationTlv() local
4974 counter++; in AppendAddressRegistrationTlv()
4983 counter++; in AppendAddressRegistrationTlv()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/include/test/
Dssl_helpers.h87 size_t counter; member
/openthread-latest/tests/scripts/thread-cert/
Dnode.py407 def _process_traffic_counters(self, counter): argument
410 'packets': counter[0],
411 'bytes': counter[1],
414 'packets': counter[2],
415 'bytes': counter[3],
419 def _process_packet_counters(self, counter): argument
420 return {'4to6': {'packets': counter[0]}, '6to4': {'packets': counter[1]}}
/openthread-latest/tests/toranj/cli/
Dcli.py507 counter = int(m.group(1))
511 return counter
/openthread-latest/tools/otci/otci/
Dotci.py450 def set_key_sequence_counter(self, counter: int):
2331 counter = Counter()
2334 counter[k] = int(v)
2336 return counter
/openthread-latest/etc/cmake/
Doptions.cmake207 …TER OPENTHREAD_CONFIG_DYNAMIC_STORE_FRAME_AHEAD_COUNTER_ENABLE "dynamic store frame ahead counter")

12