Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 8 of 8) sorted by relevance

/net-tools-3.5.0/tinydtls-0.8.2/sha2/
Dsha2speed.c42 #define BUFSIZE 16384 macro
66 char buf[BUFSIZE]; in main()
82 blocks = bytes / BUFSIZE; in main()
92 memset(buf, atoi(argv[2]), BUFSIZE); in main()
94 memset(buf, 0xb7, BUFSIZE); in main()
106 SHA256_Update(&c256, (unsigned char*)buf, BUFSIZE); in main()
108 if (bytes % BUFSIZE) { in main()
109 SHA256_Update(&c256, (unsigned char*)buf, bytes % BUFSIZE); in main()
122 SHA384_Update(&c384, (unsigned char*)buf, BUFSIZE); in main()
124 if (bytes % BUFSIZE) { in main()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/programs/test/
Dbenchmark.c90 #define BUFSIZE 1024 macro
130 ii * BUFSIZE / 1024, \
131 ( mbedtls_timing_hardclock() - tsc ) / ( jj * BUFSIZE ) ); \
235 unsigned char buf[BUFSIZE];
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()
350 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in main()
355 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in main()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/example-benchmark/
Dmain.cpp178 #define BUFSIZE 1024 macro
233 i * BUFSIZE / 1024, \
234 ( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
337 unsigned char buf[BUFSIZE];
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()
446 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in benchmark()
451 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in benchmark()
[all …]
/net-tools-3.5.0/libcoap/examples/contiki/
Dcoap-observer.c147 #define BUFSIZE 20 in PROCESS_THREAD() macro
148 unsigned char _buf[BUFSIZE]; in PROCESS_THREAD()
153 buflen = BUFSIZE; in PROCESS_THREAD()
154 #undef BUFSIZE in PROCESS_THREAD()
/net-tools-3.5.0/libcoap/examples/
Dcoap-rd.c296 #define BUFSIZE 64 in add_source_address() macro
300 buf = (char *)coap_malloc(BUFSIZE); in add_source_address()
313 n += snprintf(buf + n, BUFSIZE - n, in add_source_address()
335 snprintf(buf + n, BUFSIZE - n, ":%d", peer->addr.sin6.sin6_port); in add_source_address()
342 if (n < BUFSIZE) in add_source_address()
351 #undef BUFSIZE in add_source_address()
Detsi_iot_01.c250 #define BUFSIZE 20 in hnd_post_test() macro
252 unsigned char _buf[BUFSIZE]; in hnd_post_test()
254 size_t buflen = BUFSIZE; in hnd_post_test()
Dclient.c665 #define BUFSIZE 40 in cmdline_uri() macro
666 unsigned char _buf[BUFSIZE]; in cmdline_uri()
699 buflen = BUFSIZE; in cmdline_uri()
713 buflen = BUFSIZE; in cmdline_uri()
/net-tools-3.5.0/
Dcoap-client.c672 #define BUFSIZE 40 in parse_uri() macro
673 unsigned char _buf[BUFSIZE]; in parse_uri()
681 buflen = BUFSIZE; in parse_uri()
696 buflen = BUFSIZE; in parse_uri()