| /openthread-latest/third_party/mbedtls/repo/library/ |
| D | timing.c | 75 LARGE_INTEGER now, hfreq; in mbedtls_timing_get_timer() local 76 QueryPerformanceCounter(&now); in mbedtls_timing_get_timer() 78 delta = (unsigned long) ((now.QuadPart - t->start.QuadPart) * 1000ul in mbedtls_timing_get_timer() 95 struct timeval now; in mbedtls_timing_get_timer() local 96 gettimeofday(&now, NULL); in mbedtls_timing_get_timer() 97 delta = (now.tv_sec - t->start.tv_sec) * 1000ul in mbedtls_timing_get_timer() 98 + (now.tv_usec - t->start.tv_usec) / 1000; in mbedtls_timing_get_timer()
|
| D | x509.c | 1053 int mbedtls_x509_time_gmtime(mbedtls_time_t tt, mbedtls_x509_time *now) in mbedtls_x509_time_gmtime() argument 1061 now->year = tm.tm_year + 1900; in mbedtls_x509_time_gmtime() 1062 now->mon = tm.tm_mon + 1; in mbedtls_x509_time_gmtime() 1063 now->day = tm.tm_mday; in mbedtls_x509_time_gmtime() 1064 now->hour = tm.tm_hour; in mbedtls_x509_time_gmtime() 1065 now->min = tm.tm_min; in mbedtls_x509_time_gmtime() 1066 now->sec = tm.tm_sec; in mbedtls_x509_time_gmtime() 1070 static int x509_get_current_time(mbedtls_x509_time *now) in x509_get_current_time() argument 1072 return mbedtls_x509_time_gmtime(mbedtls_time(NULL), now); in x509_get_current_time() 1077 mbedtls_x509_time now; in mbedtls_x509_time_is_past() local [all …]
|
| D | x509_crt.c | 2011 const mbedtls_x509_time *now) in x509_crt_verifycrl() argument 2093 if (mbedtls_x509_time_cmp(&crl_list->next_update, now) < 0) { in x509_crt_verifycrl() 2097 if (mbedtls_x509_time_cmp(&crl_list->this_update, now) > 0) { in x509_crt_verifycrl() 2101 ((void) now); in x509_crt_verifycrl() 2261 const mbedtls_x509_time *now) in x509_crt_find_parent_in() argument 2326 if (mbedtls_x509_time_cmp(&parent->valid_to, now) < 0 || /* past */ in x509_crt_find_parent_in() 2327 mbedtls_x509_time_cmp(&parent->valid_from, now) > 0) { /* future */ in x509_crt_find_parent_in() 2336 ((void) now); in x509_crt_find_parent_in() 2384 const mbedtls_x509_time *now) in x509_crt_find_parent() argument 2405 path_cnt, self_cnt, rs_ctx, now); in x509_crt_find_parent() [all …]
|
| /openthread-latest/src/posix/platform/ |
| D | alarm.cpp | 82 struct timespec now; in otPlatTimeGet() local 84 VerifyOrDie(clock_gettime(OT_POSIX_CLOCK_ID, &now) == 0, OT_EXIT_FAILURE); in otPlatTimeGet() 86 …return static_cast<uint64_t>(now.tv_sec) * OT_US_PER_S + static_cast<uint64_t>(now.tv_nsec) / OT_N… in otPlatTimeGet() 201 uint64_t now = platformAlarmGetNow(); in platformAlarmUpdateTimeout() local 207 remaining = (int32_t)(sMsAlarm - (uint32_t)(now / OT_US_PER_MS)); in platformAlarmUpdateTimeout() 210 remaining -= (now % OT_US_PER_MS); in platformAlarmUpdateTimeout() 216 int32_t usRemaining = (int32_t)(sUsAlarm - (uint32_t)now); in platformAlarmUpdateTimeout()
|
| D | spi_interface.cpp | 740 uint64_t now = otPlatTimeGet(); in WaitForFrame() local 741 uint64_t end = now + aTimeoutUs; in WaitForFrame() 745 while (now < end) in WaitForFrame() 751 context.mTimeout.tv_sec = static_cast<time_t>((end - now) / OT_US_PER_S); in WaitForFrame() 752 context.mTimeout.tv_usec = static_cast<suseconds_t>((end - now) % OT_US_PER_S); in WaitForFrame() 775 now = otPlatTimeGet(); in WaitForFrame()
|
| D | hdlc_interface.cpp | 394 uint64_t now = otPlatTimeGet(); in WaitForWritable() local 395 uint64_t end = now + kMaxWaitTime * OT_US_PER_MS; in WaitForWritable() 429 now = otPlatTimeGet(); in WaitForWritable() 431 if (end > now) in WaitForWritable() 433 uint64_t remain = end - now; in WaitForWritable()
|
| D | resolver.cpp | 76 uint64_t now = otPlatTimeGet(); in TryRefreshDnsServerList() local 78 if (now > mUpstreamDnsServerListFreshness + kDnsServerListCacheTimeoutMs || in TryRefreshDnsServerList() 79 …(mUpstreamDnsServerCount == 0 && now > mUpstreamDnsServerListFreshness + kDnsServerListNullCacheTi… in TryRefreshDnsServerList()
|
| D | multicast_routing.cpp | 400 uint64_t now = otPlatTimeGet(); in ExpireMulticastForwardingCache() local 403 VerifyOrExit(now >= mLastExpireTime + kMulticastForwardingCacheExpiringInterval * OT_US_PER_S); in ExpireMulticastForwardingCache() 405 mLastExpireTime = now; in ExpireMulticastForwardingCache() 412 …if (mfc.IsValid() && mfc.mLastUseTime + kMulticastForwardingCacheExpireTimeout * OT_US_PER_S < now) in ExpireMulticastForwardingCache()
|
| /openthread-latest/src/core/common/ |
| D | timer.cpp | 158 Time now(aAlarmApi.AlarmGetNow()); in Add() local 164 if (aTimer.DoesFireBefore(cur, now)) in Add() 212 Time now(aAlarmApi.AlarmGetNow()); in SetAlarm() local 215 remaining = (now < timer->mFireTime) ? (timer->mFireTime - now) : 0; in SetAlarm() 217 aAlarmApi.AlarmStartAt(&GetInstance(), now.GetValue(), remaining); in SetAlarm() 227 Time now(aAlarmApi.AlarmGetNow()); in ProcessTimers() local 229 if (now >= timer->mFireTime) in ProcessTimers()
|
| D | uptime.cpp | 53 TimeMilli now = TimerMilli::GetNow(); in GetUptime() local 68 if ((mTimer.GetFireTime() == mStartTime) && (now >= mStartTime)) in GetUptime() 78 return (static_cast<uint64_t>(overflowCount) << 32) + (now - mStartTime); in GetUptime()
|
| /openthread-latest/tests/nexus/platform/ |
| D | nexus_misc.cpp | 140 uint32_t now = Core::Get().GetNow().GetValue(); in LogVarArgs() local 142 … printf("%02u:%02u:%02u.%03u ", now / 3600000, (now / 60000) % 60, (now / 1000) % 60, now % 1000); in LogVarArgs()
|
| /openthread-latest/examples/platforms/utils/ |
| D | debug_uart.c | 130 uint32_t now; in otPlatLog() local 132 now = otPlatAlarmMilliGetNow(); in otPlatLog() 133 otPlatDebugUart_printf("%3d.%03d | ", (int)(now / 1000), (int)(now % 1000)); in otPlatLog()
|
| D | logging_rtt.c | 102 long unsigned int now = otPlatAlarmMilliGetNow(); in logTimestamp() local 103 return snprintf(aLogString, (size_t)aMaxSize, "%s[%010lu]", RTT_COLOR_CODE_CYAN, now); in logTimestamp()
|
| /openthread-latest/src/core/backbone_router/ |
| D | multicast_listeners_table.cpp | 111 TimeMilli now = TimerMilli::GetNow(); in Expire() local 114 while (mNumValidListeners > 0 && now >= mListeners[0].GetExpireTime()) in Expire() 291 TimeMilli now; in GetNext() local 295 now = TimerMilli::GetNow(); in GetNext() 299 …Time::MsecToSec(mListeners[aIterator].mExpireTime > now ? mListeners[aIterator].mExpireTime - now … in GetNext()
|
| /openthread-latest/examples/platforms/simulation/ |
| D | alarm.c | 138 struct timespec now; in platformGetNow() local 141 err = clock_gettime(OT_SIMULATION_CLOCK_ID, &now); in platformGetNow() 145 …return (uint64_t)now.tv_sec * sSpeedUpFactor * OT_US_PER_S + (uint64_t)now.tv_nsec * sSpeedUpFacto… in platformGetNow()
|
| /openthread-latest/tests/gtest/ |
| D | fake_platform.cpp | 97 uint32_t now = mNow; in StartMicroAlarm() local 99 …if (static_cast<int32_t>(aT0 - now) > 0 || static_cast<int32_t>(aT0 - now) + static_cast<int64_t>(… in StartMicroAlarm() 101 start += static_cast<uint64_t>(aDt) + static_cast<int32_t>(aT0 - now); in StartMicroAlarm() 113 uint32_t now = (mNow / OT_US_PER_MS); in StartMilliAlarm() local 115 …if (static_cast<int32_t>(aT0 - now) > 0 || static_cast<int32_t>(aT0 - now) + static_cast<int64_t>(… in StartMilliAlarm() 117 start += (static_cast<uint64_t>(aDt) + static_cast<int32_t>(aT0 - now)) * OT_US_PER_MS; in StartMilliAlarm()
|
| /openthread-latest/src/core/mac/ |
| D | sub_mac_csl_receiver.cpp | 246 uint32_t now; in GetLocalTime() local 249 now = TimerMicro::GetNow().GetValue(); in GetLocalTime() 251 now = static_cast<uint32_t>(Get<Radio>().GetNow()); in GetLocalTime() 254 return now; in GetLocalTime()
|
| D | data_poll_sender.cpp | 440 TimeMilli now; in ScheduleNextPoll() local 448 now = TimerMilli::GetNow(); in ScheduleNextPoll() 463 if (mTimerStartTime + mPollPeriod < now + kMinPollPeriod) in ScheduleNextPoll() 465 mTimer.StartAt(now, kMinPollPeriod); in ScheduleNextPoll() 476 mTimerStartTime = now; in ScheduleNextPoll()
|
| /openthread-latest/third_party/mbedtls/repo/docs/ |
| D | 3.0-migration-guide.md | 48 …his has moved to `include/mbedtls/build_info.h`. From C code, both headers now define the `MBEDTLS… 62 ### Most structure fields are now private 82 If you were relying on these functions, you'll now need to change to using your 88 include `mbedtls/net_sockets.h` which now should be included directly. 201 The option `MBEDTLS_ECP_FIXED_POINT_OPTIM` now increases code size and it does 223 `MBEDTLS_SHA512_NO_SHA384` was disabled by default, now `MBEDTLS_SHA384_C` is 234 The GCM module now supports arbitrary chunked input in the multipart interface. 238 * `mbedtls_gcm_starts()` now only sets the mode and the nonce (IV). Call the new function `mbedtls_… 239 * `mbedtls_gcm_update()` now takes an extra parameter to indicate the actual output length. In Mbed… 242 * `mbedtls_gcm_finish()` now takes an extra output buffer for the last partial block. This is neede… [all …]
|
| /openthread-latest/third_party/mbedtls/repo/ |
| D | ChangeLog | 11 * psa_import_key() now only accepts RSA keys in the PSA standard formats. 44 * AES-NI is now supported in Windows builds with clang and clang-cl. 55 * If a cipher or AEAD mechanism has a PSA driver, you can now build the 62 * The CTR_DRBG module will now use AES from a PSA driver if MBEDTLS_AES_C is 68 MBEDTLS_PSA_CRYPTO can now be enabled without MBEDTLS_CIPHER_C if all 93 with PKCS#5 PBES2. Keys encrypted this way can now be parsed by PK parse. 103 * The benchmark program now reports times for both ephemeral and static 132 * Mbed TLS now supports the writing and reading of TLS 1.3 early data (see 148 to PSA functions is now secure by default. 149 The PSA core now protects against modification of inputs or exposure [all …]
|
| /openthread-latest/src/core/utils/ |
| D | ping_sender.cpp | 123 TimeMilli now = TimerMilli::GetNow(); in SendPing() local 136 SuccessOrExit(message->Append(BigEndian::HostSwap32(now.GetValue()))); in SendPing() 148 …Get<Utils::Otns>().EmitPingRequest(mConfig.GetDestination(), mConfig.mSize, now.GetValue(), mConfi… in SendPing()
|
| /openthread-latest/src/core/border_router/ |
| D | routing_manager.cpp | 503 TimeMilli now = TimerMilli::GetNow(); in ScheduleRoutingPolicyEvaluation() local 544 evaluateTime = Max(now + delay, mTxRaInfo.mLastTxTime + kMinDelayBetweenRas); in ScheduleRoutingPolicyEvaluation() 550 uint32_t duration = evaluateTime - now; in ScheduleRoutingPolicyEvaluation() 1567 TimeMilli now = TimerMilli::GetNow(); in Evaluate() local 1568 NextFireTime routerTimeoutTime(now); in Evaluate() 1569 NextFireTime entryExpireTime(now); in Evaluate() 1570 NextFireTime staleTime(now); in Evaluate() 1576 mRouters.RemoveAndFreeAllMatching(Router::EmptyChecker(now)); in Evaluate() 1766 TimeMilli now = TimerMilli::GetNow(); in HandleRouterTimer() local 1770 if (!router.ShouldCheckReachability() || (router.mTimeoutTime > now)) in HandleRouterTimer() [all …]
|
| /openthread-latest/src/core/meshcop/ |
| D | secure_transport.cpp | 439 TimeMilli now = TimerMilli::GetNow(); in HandleMbedtlsGetTimer() local 441 if (now >= mTimerFinish) in HandleMbedtlsGetTimer() 445 else if (now >= mTimerIntermediate) in HandleMbedtlsGetTimer() 467 TimeMilli now = TimerMilli::GetNow(); in HandleMbedtlsSetTimer() local 470 mTimerIntermediate = now + aIntermediate; in HandleMbedtlsSetTimer() 471 mTimerFinish = now + aFinish; in HandleMbedtlsSetTimer() 1001 TimeMilli now = TimerMilli::GetNow(); in HandleTimer() local 1007 session.HandleTimer(now); in HandleTimer()
|
| /openthread-latest/third_party/mbedtls/repo/tests/scripts/ |
| D | list-identifiers.sh | 52 check_names.py and is now self-complete.
|
| /openthread-latest/src/lib/spinel/ |
| D | spinel_driver.cpp | 255 uint64_t now = otPlatTimeGet(); in WaitResponse() local 257 if ((end <= now) || (mSpinelInterface->WaitForFrame(end - now) != OT_ERROR_NONE)) in WaitResponse()
|