/net-tools-3.6.0/mbedtls-2.4.0/scripts/ |
D | bump_version.sh | 72 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < library/CMakeLists.txt > tmp 73 mv tmp library/CMakeLists.txt 78 …d -e "/mbedcrypto/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_CRYPTO/g" < library/CMakeLists.txt > tmp 79 mv tmp library/CMakeLists.txt 82 sed -e "s/SOEXT_CRYPTO=so.[0-9]\{1,\}/SOEXT_CRYPTO=so.$SO_CRYPTO/g" < library/Makefile > tmp 83 mv tmp library/Makefile 89 sed -e "/mbedx509/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_X509/g" < library/CMakeLists.txt > tmp 90 mv tmp library/CMakeLists.txt 93 sed -e "s/SOEXT_X509=so.[0-9]\{1,\}/SOEXT_X509=so.$SO_X509/g" < library/Makefile > tmp 94 mv tmp library/Makefile [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/ |
D | benchmark.c | 103 mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \ 104 mbedtls_printf( "FAILED: %s\n", tmp ); 136 mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \ 137 mbedtls_printf( "FAILED: %s\n", tmp ); 249 unsigned char tmp[200]; in main() local 326 memset( tmp, 0xBB, sizeof( tmp ) ); in main() 330 TIME_AND_TSC( "MD4", mbedtls_md4( buf, BUFSIZE, tmp ) ); in main() 335 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in main() 340 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in main() 345 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in main() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | main.cpp | 190 mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \ 191 mbedtls_printf( "FAILED: %s\r\n", tmp ); 239 mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \ 240 mbedtls_printf( "FAILED: %s\r\n", tmp ); 349 unsigned char tmp[200]; in benchmark() local 422 memset( tmp, 0xBB, sizeof( tmp ) ); in benchmark() 426 TIME_AND_TSC( "MD4", mbedtls_md4( buf, BUFSIZE, tmp ) ); in benchmark() 431 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in benchmark() 436 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in benchmark() 441 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in benchmark() [all …]
|
/net-tools-3.6.0/libcoap/src/ |
D | async.c | 74 coap_async_state_t *tmp; in coap_find_async() local 75 LL_SEARCH_SCALAR(context->async_state,tmp,id,id); in coap_find_async() 76 return tmp; in coap_find_async() 82 coap_async_state_t *tmp = coap_find_async(context, id); in coap_remove_async() local 84 if (tmp) in coap_remove_async() 85 LL_DELETE(context->async_state,tmp); in coap_remove_async() 87 *s = tmp; in coap_remove_async() 88 return tmp != NULL; in coap_remove_async()
|
D | coap_time.c | 50 unsigned long tmp; in coap_ticks() local 61 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC); in coap_ticks() 73 tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC); in coap_ticks() 78 *t = tmp + (tv.tv_sec - coap_clock_offset) * COAP_TICKS_PER_SECOND; in coap_ticks()
|
D | uri.c | 376 struct cnt_str tmp = { { *buflen, buf }, 0 }; in coap_split_path() local 378 coap_split_path_impl(s, length, write_option, &tmp); in coap_split_path() 380 *buflen = *buflen - tmp.buf.length; in coap_split_path() 382 return tmp.n; in coap_split_path() 388 struct cnt_str tmp = { { *buflen, buf }, 0 }; in coap_split_query() local 394 write_option((unsigned char *)p, s - p, &tmp); in coap_split_query() 403 write_option((unsigned char *)p, s - p, &tmp); in coap_split_query() 405 *buflen = *buflen - tmp.buf.length; in coap_split_query() 406 return tmp.n; in coap_split_query()
|
/net-tools-3.6.0/libcoap/include/coap/ |
D | resource.h | 354 #define RESOURCES_ITER(r,tmp) \ argument 355 coap_resource_t *tmp; \ 356 LL_FOREACH((r), tmp) 359 coap_resource_t *tmp; \ 360 (res) = tmp = NULL; \ 361 LL_FOREACH((r), tmp) { \ 362 if (memcmp((k), tmp->key, sizeof(coap_key_t)) == 0) { \ 363 (res) = tmp; \ 376 #define RESOURCES_ITER(r,tmp) \ argument 377 coap_resource_t *tmp, *rtmp; \ [all …]
|
D | uthash.h | 882 #define HASH_ITER(hh,head,el,tmp) \ argument 883 for((el)=(head), (*(char**)(&(tmp)))=(char*)((head)?(head)->hh.next:NULL); \ 884 el; (el)=(tmp),(*(char**)(&(tmp)))=(char*)((tmp)?(tmp)->hh.next:NULL)) 886 #define HASH_ITER(hh,head,el,tmp) \ argument 887 for((el)=(head),(tmp)=DECLTYPE(el)((head)?(head)->hh.next:NULL); \ 888 el; (el)=(tmp),(tmp)=DECLTYPE(el)((tmp)?(tmp)->hh.next:NULL))
|
D | utlist.h | 434 #define LL_FOREACH_SAFE(head,el,tmp) \ argument 435 LL_FOREACH_SAFE2(head,el,tmp,next) 437 #define LL_FOREACH_SAFE2(head,el,tmp,next) \ argument 438 for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp) 591 #define DL_FOREACH_SAFE(head,el,tmp) \ argument 592 DL_FOREACH_SAFE2(head,el,tmp,next) 594 #define DL_FOREACH_SAFE2(head,el,tmp,next) \ argument 595 for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)
|
/net-tools-3.6.0/ |
D | loop-ppp-dev.sh | 28 rm -f /tmp/ppp 31 socat $* PTY,link=/tmp/ppp.dev UNIX-LISTEN:/tmp/ppp
|
D | loop-socat.sh | 28 rm -f /tmp/slip.sock 31 socat PTY,link=/tmp/slip.dev UNIX-LISTEN:/tmp/slip.sock
|
D | throughput-client.c | 254 struct ifaddrs *tmp; in find_address() local 258 for (tmp = if_address; tmp; tmp = tmp->ifa_next) { in find_address() 259 if (tmp->ifa_addr && in find_address() 260 !strncmp(tmp->ifa_name, if_name, IF_NAMESIZE) && in find_address() 261 tmp->ifa_addr->sa_family == family) { in find_address() 266 (struct sockaddr_in *)tmp->ifa_addr; in find_address() 279 (struct sockaddr_in6 *)tmp->ifa_addr; in find_address()
|
D | echo-client.c | 304 struct ifaddrs *tmp; in find_address() local 308 for (tmp = if_address; tmp; tmp = tmp->ifa_next) { in find_address() 309 if (tmp->ifa_addr && in find_address() 310 !strncmp(tmp->ifa_name, if_name, IF_NAMESIZE) && in find_address() 311 tmp->ifa_addr->sa_family == family) { in find_address() 316 (struct sockaddr_in *)tmp->ifa_addr; in find_address() 329 (struct sockaddr_in6 *)tmp->ifa_addr; in find_address()
|
D | echo-server.c | 48 unsigned char tmp = buf[i]; in reverse() local 50 buf[last - i] = tmp; in reverse() 294 struct ifaddrs *tmp; in find_address() local 297 for (tmp = if_address; tmp; tmp = tmp->ifa_next) { in find_address() 298 if (tmp->ifa_addr && in find_address() 299 !strncmp(tmp->ifa_name, if_name, IF_NAMESIZE) && in find_address() 300 tmp->ifa_addr->sa_family == family) { in find_address() 305 (struct sockaddr_in *)tmp->ifa_addr; in find_address() 318 (struct sockaddr_in6 *)tmp->ifa_addr; in find_address()
|
D | README.legacy | 12 through a UNIX socket (qemu option -serial unix:/tmp/slip-socket). 16 $ socat PTY,link=/tmp/slip.dev UNIX-LISTEN:/tmp/slip.sock 25 QEMU_EXTRA_FLAGS="-serial none -serial unix:/tmp/slip.sock" qemu 33 $ sudo ./tunslip6 -s `readlink /tmp/slip.dev` 2001:db8::1/64 77 through a UNIX socket (qemu option -serial unix:/tmp/slip-socket). 81 $ socat PTY,link=/tmp/slip.dev UNIX-LISTEN:/tmp/slip.sock 90 QEMU_EXTRA_FLAGS="-serial none -serial unix:/tmp/slip.sock" qemu 94 $ sudo ./tunslip -s `readlink /tmp/slip.dev` 192.0.2.1 255.255.255.0 198 $ monitor_15_4 sample.pcap /tmp/ip-15-4-1 /tmp/ip-15-4-2
|
D | loop-slip-tap.sh | 46 "$tunslip_prog" -T -s /tmp/slip.dev 2001:db8::1/64 $@
|
D | loop-slip.sh | 43 $DIR/tunslip6 -s `readlink /tmp/slip.dev` 2001:db8::1/64
|
D | loop-pppd.sh | 17 DEV=/tmp/ppp.dev
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | ctr_drbg.c | 146 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in block_cipher_df() local 205 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df() 216 mbedtls_aes_setkey_enc( &aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in block_cipher_df() 217 iv = tmp + MBEDTLS_CTR_DRBG_KEYSIZE; in block_cipher_df() 235 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in ctr_drbg_update_internal() local 236 unsigned char *p = tmp; in ctr_drbg_update_internal() 239 memset( tmp, 0, MBEDTLS_CTR_DRBG_SEEDLEN ); in ctr_drbg_update_internal() 259 tmp[i] ^= data[i]; in ctr_drbg_update_internal() 264 mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in ctr_drbg_update_internal() 265 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in ctr_drbg_update_internal() [all …]
|
/net-tools-3.6.0/libcoap/examples/ |
D | coap_list.c | 44 coap_list_t *elt, *tmp; in coap_delete_list() local 49 LL_FOREACH_SAFE(queue, elt, tmp) { in coap_delete_list()
|
D | coap-server.c | 147 struct tm *tmp; in hnd_get_time() local 148 tmp = gmtime(&now); in hnd_get_time() 152 "%b %d %H:%M:%S", tmp); in hnd_get_time() 252 coap_async_state_t *tmp; in check_async() local 282 coap_remove_async(ctx, async->id, &tmp); in check_async()
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/ |
D | sha2.c | 157 sha2_word32 tmp = (w); \ 158 tmp = (tmp >> 16) | (tmp << 16); \ 159 (x) = ((tmp & 0xff00ff00UL) >> 8) | ((tmp & 0x00ff00ffUL) << 8); \ 162 sha2_word64 tmp = (w); \ 163 tmp = (tmp >> 32) | (tmp << 32); \ 164 tmp = ((tmp & 0xff00ff00ff00ff00ULL) >> 8) | \ 165 ((tmp & 0x00ff00ff00ff00ffULL) << 8); \ 166 (x) = ((tmp & 0xffff0000ffff0000ULL) >> 16) | \ 167 ((tmp & 0x0000ffff0000ffffULL) << 16); \
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | uthash.h | 891 #define HASH_ITER(hh,head,el,tmp) \ argument 892 for((el)=(head), (*(char**)(&(tmp)))=(char*)((head)?(head)->hh.next:NULL); \ 893 el; (el)=(tmp),(*(char**)(&(tmp)))=(char*)((tmp)?(tmp)->hh.next:NULL)) 895 #define HASH_ITER(hh,head,el,tmp) \ argument 896 for((el)=(head),(tmp)=DECLTYPE(el)((head)?(head)->hh.next:NULL); \ 897 el; (el)=(tmp),(tmp)=DECLTYPE(el)((tmp)?(tmp)->hh.next:NULL))
|
D | debug.c | 76 struct tm *tmp; in print_timestamp() local 77 tmp = localtime(&t); in print_timestamp() 78 return strftime(s, len, "%b %d %H:%M:%S", tmp); in print_timestamp()
|
D | utlist.h | 364 #define LL_FOREACH_SAFE(head,el,tmp) \ argument 365 for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp) 432 #define DL_FOREACH_SAFE(head,el,tmp) \ argument 433 for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)
|