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.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-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.cpp2080 for (const BrCounterName &counter : kCounterNames) in OutputBorderRouterCounters() local
2082 OutputFormat("%s:", counter.mName); in OutputBorderRouterCounters()
2084 … Uint64ToString((brCounters->*counter.mPacketsAndBytes).mPackets, uint64StringBuffer)); in OutputBorderRouterCounters()
2085 …OutputLine(" Bytes %s", Uint64ToString((brCounters->*counter.mPacketsAndBytes).mBytes, uint64Strin… in OutputBorderRouterCounters()
2260 for (const MacCounterName &counter : kTxCounterNames) in Process() local
2262 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2267 for (const MacCounterName &counter : kRxCounterNames) in Process() local
2269 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2334 for (const MleCounterName &counter : kCounterNames) in Process() local
2336 OutputLine("%s: %u", counter.mName, mleCounters->*counter.mValuePtr); in Process()
[all …]
DREADME.md66 - [keysequence](#keysequence-counter)
458 Get the border agent counter values.
513 Reset the message buffer counter tracking maximum number buffers in use at the same time.
874 Get the current value of supervision check timeout failure counter.
876 The counter tracks the number of supervision check failures on the child. It is incremented when th…
886 Reset the supervision check timeout failure counter to zero.
999 Get the supported counter names.
1012 Get the counter value.
1092 Reset the counter value.
1856 ### keysequence counter
[all …]
DREADME_BR.md102 Get the Border Router counter.
/openthread-latest/src/core/net/
Dip6.cpp1425 otPacketsAndBytes *counter = nullptr; in UpdateBorderRoutingCounters() local
1445 counter = &mBrCounters.mInboundMulticast; in UpdateBorderRoutingCounters()
1449 counter = &mBrCounters.mInboundUnicast; in UpdateBorderRoutingCounters()
1464 counter = &mBrCounters.mOutboundMulticast; in UpdateBorderRoutingCounters()
1468 counter = &mBrCounters.mOutboundUnicast; in UpdateBorderRoutingCounters()
1474 if (counter) in UpdateBorderRoutingCounters()
1476 counter->mPackets += 1; in UpdateBorderRoutingCounters()
1477 counter->mBytes += aMessageLength; in UpdateBorderRoutingCounters()
Ddns_client.cpp178 for (uint16_t counter = 0; counter < kMaxCnameAliasNameChanges; counter++) in CheckForHostNameAlias() local
/openthread-latest/src/core/thread/
Dmle.cpp652 uint16_t counter = mAttachCounter - 1; in GetAttachStartDelay() local
655 if ((counter < BitSizeOf(ratio)) && ((1UL << counter) <= ratio)) in GetAttachStartDelay()
658 delay <<= counter; in GetAttachStartDelay()
4508 uint32_t counter; in AppendLinkFrameCounterTlv() local
4515 counter = Get<KeyManager>().GetMaximumMacFrameCounter(); in AppendLinkFrameCounterTlv()
4518 Get<KeyManager>().SetAllMacFrameCounters(counter, /* aSetIfLarger */ true); in AppendLinkFrameCounterTlv()
4521 return Tlv::Append<LinkFrameCounterTlv>(*this, counter); in AppendLinkFrameCounterTlv()
4591 uint8_t counter = 0; in AppendAddressRegistrationTlv() local
4602 counter++; in AppendAddressRegistrationTlv()
4611 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.py486 counter = int(m.group(1))
490 return counter
/openthread-latest/tools/otci/otci/
Dotci.py450 def set_key_sequence_counter(self, counter: int):
2324 counter = Counter()
2327 counter[k] = int(v)
2329 return counter
/openthread-latest/etc/cmake/
Doptions.cmake207 …TER OPENTHREAD_CONFIG_DYNAMIC_STORE_FRAME_AHEAD_COUNTER_ENABLE "dynamic store frame ahead counter")

12