/net-tools-3.6.0/libcoap/include/coap/ |
D | coap_time.h | 36 static inline void coap_ticks_impl(coap_tick_t *t) { in coap_ticks_impl() argument 37 *t = sys_now(); in coap_ticks_impl() 46 static inline coap_time_t coap_ticks_to_rt(coap_tick_t t) { in coap_ticks_to_rt() argument 47 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt() 70 static inline void coap_ticks(coap_tick_t *t) { in coap_ticks() argument 71 *t = clock_time(); in coap_ticks() 74 static inline coap_time_t coap_ticks_to_rt(coap_tick_t t) { in coap_ticks_to_rt() argument 75 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt() 109 void coap_ticks(coap_tick_t *t); 121 coap_time_t coap_ticks_to_rt(coap_tick_t t);
|
/net-tools-3.6.0/libcoap/tests/ |
D | test_sendqueue.c | 31 coap_tick_t t = 0; in add_timestamps() local 33 t += queue->t; in add_timestamps() 37 return t; in add_timestamps() 47 CU_ASSERT(node[1]->t == timestamp[1]); in t_sendqueue1() 60 CU_ASSERT(sendqueue->t == timestamp[1]); in t_sendqueue2() 61 CU_ASSERT(node[2]->t == timestamp[2] - timestamp[1]); in t_sendqueue2() 73 CU_ASSERT(node[3]->t == timestamp[3]); in t_sendqueue3() 78 CU_ASSERT(sendqueue->next->t == timestamp[1] - timestamp[3]); in t_sendqueue3() 79 CU_ASSERT(sendqueue->next->next->t == timestamp[2] - timestamp[1]); in t_sendqueue3() 102 CU_ASSERT(sendqueue->next->t == timestamp[1] - timestamp[3]); in t_sendqueue4() [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/ |
D | sha2speed.c | 70 double t, ave256, ave384, ave512; in main() local 113 t = ((end.tv_sec - start.tv_sec) * 1000000.0 + (end.tv_usec - start.tv_usec)) / 1000000.0; in main() 114 ave256 += t; in main() 115 if (t < best256) { in main() 116 best256 = t; in main() 118 printf("SHA-256[%d] (%.4f/%.4f/%.4f seconds) = 0x%s\n", i+1, t, ave256/(i+1), best256, md); in main() 129 t = ((end.tv_sec - start.tv_sec) * 1000000.0 + (end.tv_usec - start.tv_usec)) / 1000000.0; in main() 130 ave384 += t; in main() 131 if (t < best384) { in main() 132 best384 = t; in main() [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | dtls_time.c | 45 dtls_ticks(dtls_tick_t *t) { in dtls_ticks() argument 46 *t = clock_time(); in dtls_ticks() 67 void dtls_ticks(dtls_tick_t *t) { in dtls_ticks() argument 71 *t = (tv.tv_sec - dtls_clock_offset) * DTLS_TICKS_PER_SECOND in dtls_ticks()
|
D | debug.c | 75 print_timestamp(char *s, size_t len, time_t t) { in print_timestamp() argument 77 tmp = localtime(&t); in print_timestamp() 84 print_timestamp(char *s, size_t len, clock_time_t t) { in print_timestamp() argument 87 (unsigned int)(t / CLOCK_SECOND), in print_timestamp() 88 (unsigned int)(t % CLOCK_SECOND)); in print_timestamp()
|
D | netq.c | 68 while(p && p->t <= node->t && list_item_next(p)) in netq_insert_node()
|
D | dtls_time.h | 65 void dtls_ticks(dtls_tick_t *t);
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | md2.c | 120 unsigned char t = 0; in mbedtls_md2_process() local 134 ( ctx->state[j] ^ PI_SUBST[t] ); in mbedtls_md2_process() 135 t = ctx->state[j]; in mbedtls_md2_process() 138 t = (unsigned char)( t + i ); in mbedtls_md2_process() 141 t = ctx->cksum[15]; in mbedtls_md2_process() 146 ( ctx->cksum[i] ^ PI_SUBST[ctx->buffer[i] ^ t] ); in mbedtls_md2_process() 147 t = ctx->cksum[i]; in mbedtls_md2_process()
|
D | ssl_cookie.c | 166 unsigned long t; in mbedtls_ssl_cookie_write() local 175 t = (unsigned long) mbedtls_time( NULL ); in mbedtls_ssl_cookie_write() 177 t = ctx->serial++; in mbedtls_ssl_cookie_write() 180 (*p)[0] = (unsigned char)( t >> 24 ); in mbedtls_ssl_cookie_write() 181 (*p)[1] = (unsigned char)( t >> 16 ); in mbedtls_ssl_cookie_write() 182 (*p)[2] = (unsigned char)( t >> 8 ); in mbedtls_ssl_cookie_write() 183 (*p)[3] = (unsigned char)( t ); in mbedtls_ssl_cookie_write()
|
D | timing.c | 249 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer() local 255 ( offset.QuadPart - t->start.QuadPart ) ) / in mbedtls_timing_get_timer() 259 QueryPerformanceCounter( &t->start ); in mbedtls_timing_get_timer() 290 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer() local 296 t->start.tv_sec = offset.tv_sec; in mbedtls_timing_get_timer() 297 t->start.tv_usec = offset.tv_usec; in mbedtls_timing_get_timer() 301 delta = ( offset.tv_sec - t->start.tv_sec ) * 1000 in mbedtls_timing_get_timer() 302 + ( offset.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
|
D | ecdsa.c | 78 mbedtls_mpi k, e, t; in mbedtls_ecdsa_sign() local 85 mbedtls_mpi_init( &k ); mbedtls_mpi_init( &e ); mbedtls_mpi_init( &t ); in mbedtls_ecdsa_sign() 121 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &t, n_size, f_rng, p_rng ) ); in mbedtls_ecdsa_sign() 122 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &t, 8 * n_size - grp->nbits ) ); in mbedtls_ecdsa_sign() 128 while( mbedtls_mpi_cmp_int( &t, 1 ) < 0 || in mbedtls_ecdsa_sign() 129 mbedtls_mpi_cmp_mpi( &t, &grp->N ) >= 0 ); in mbedtls_ecdsa_sign() 136 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &e, &e, &t ) ); in mbedtls_ecdsa_sign() 137 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &k, &k, &t ) ); in mbedtls_ecdsa_sign() 152 mbedtls_mpi_free( &k ); mbedtls_mpi_free( &e ); mbedtls_mpi_free( &t ); in mbedtls_ecdsa_sign()
|
D | ssl_cache.c | 62 mbedtls_time_t t = mbedtls_time( NULL ); in mbedtls_ssl_cache_get() local 82 (int) ( t - entry->timestamp ) > cache->timeout ) in mbedtls_ssl_cache_get() 141 mbedtls_time_t t = time( NULL ), oldest = 0; in mbedtls_ssl_cache_set() local 162 (int) ( t - cur->timestamp ) > cache->timeout ) in mbedtls_ssl_cache_set() 164 cur->timestamp = t; in mbedtls_ssl_cache_set() 238 cur->timestamp = t; in mbedtls_ssl_cache_set()
|
D | sha256.c | 169 #define R(t) \ argument 171 W[t] = S1(W[t - 2]) + W[t - 7] + \ 172 S0(W[t - 15]) + W[t - 16] \
|
D | bignum.c | 1106 mbedtls_mpi_uint c = 0, t = 0; in mpi_mul_hlp() local 1157 t++; in mpi_mul_hlp() 1320 size_t i, n, t, k; in mbedtls_mpi_div_mpi() local 1355 t = Y.n - 1; in mbedtls_mpi_div_mpi() 1356 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi() 1360 Z.p[n - t]++; in mbedtls_mpi_div_mpi() 1363 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi() 1365 for( i = n; i > t ; i-- ) in mbedtls_mpi_div_mpi() 1367 if( X.p[i] >= Y.p[t] ) in mbedtls_mpi_div_mpi() 1368 Z.p[i - t - 1] = ~0; in mbedtls_mpi_div_mpi() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/random/ |
D | gen_random_havege.c | 53 time_t t; in main() local 72 t = time( NULL ); in main() 91 if( t == time( NULL ) ) in main() 92 t--; in main()
|
/net-tools-3.6.0/libcoap/src/ |
D | coap_time.c | 49 coap_ticks(coap_tick_t *t) { in coap_ticks() argument 78 *t = tmp + (tv.tv_sec - coap_clock_offset) * COAP_TICKS_PER_SECOND; in coap_ticks() 82 coap_ticks_to_rt(coap_tick_t t) { in coap_ticks_to_rt() argument 83 return coap_clock_offset + (t / COAP_TICKS_PER_SECOND); in coap_ticks_to_rt()
|
D | net.c | 187 ctx->sendqueue->t -= delta; in coap_adjust_basetime() 195 coap_tick_t t = 0; in coap_adjust_basetime() local 196 while (q && (t + q->t < (coap_tick_t)delta)) { in coap_adjust_basetime() 197 t += q->t; in coap_adjust_basetime() 198 q->t = 0; in coap_adjust_basetime() 205 q->t = (coap_tick_t)delta - t; in coap_adjust_basetime() 230 if (node->t < q->t) { in coap_insert_node() 233 q->t -= node->t; /* make q->t relative to node->t */ in coap_insert_node() 239 node->t -= q->t; /* make node-> relative to q->t */ in coap_insert_node() 242 } while (q && q->t <= node->t); in coap_insert_node() [all …]
|
D | debug.c | 77 print_timestamp(char *s, size_t len, coap_tick_t t) { in print_timestamp() argument 79 time_t now = coap_ticks_to_rt(t); in print_timestamp() 87 print_timestamp(char *s, size_t len, coap_tick_t t) { in print_timestamp() argument 90 (unsigned int)coap_ticks_to_rt(t), in print_timestamp() 91 (unsigned int)(t % COAP_TICKS_PER_SECOND)); in print_timestamp() 264 msg_type_string(uint8_t t) { in msg_type_string() argument 267 return types[min(t, sizeof(types)/sizeof(char *) - 1)]; in msg_type_string()
|
/net-tools-3.6.0/libcoap/examples/ |
D | coap-server.c | 104 coap_tick_t t; in hnd_get_time() local 132 coap_ticks(&t); in hnd_get_time() 133 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time() 166 coap_tick_t t; in hnd_put_time() local 187 coap_ticks(&t); in hnd_put_time() 190 my_clock_base -= t / COAP_TICKS_PER_SECOND; in hnd_put_time() 504 while (nextpdu && nextpdu->t <= now - ctx->sendqueue_basetime) { in main() 509 if ( nextpdu && nextpdu->t <= COAP_RESOURCE_CHECK_TIME ) { in main() 511 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main() 512 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; in main()
|
D | coap-client.txt.in | 17 *coap-client* [*-A* type1, _type2_ ,...] [*-t* type] [*-b* [num,]size] 66 *-t* type:: 89 described for option *-t*. 135 port '5683' is the default port and isn't really needed to append. 139 coap-client -m put coap://[fec0::3]/ck -T 3a -t binary -f to_upload
|
/net-tools-3.6.0/ |
D | README.docker | 6 docker build -t net-tools . 48 docker container exec net-tools /net-tools/echo-client -t 2001:db8::1 50 docker container exec net-tools /net-tools/echo-client -t 192.0.2.1
|
/net-tools-3.6.0/libcoap/examples/contiki/ |
D | server.c | 101 coap_tick_t t; in hnd_get_time() local 126 coap_ticks(&t); in hnd_get_time() 127 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()
|
/net-tools-3.6.0/libcoap/ |
D | AUTHORS | 3 Olaf Bergmann, Universit�t Bremen <bergmann@tzi.org>
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/data_files/dir3/ |
D | Readme | 1 This is just to make sure files that don't parse as certs are ignored.
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | bn_mul.h | 142 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \ 143 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \ 154 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \ 155 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \
|