/net-tools-3.5.0/libcoap/src/ |
D | async.c | 26 coap_async_state_t *s; in coap_register_async() local 30 LL_SEARCH_SCALAR(context->async_state,s,id,id); in coap_register_async() 32 if (s != NULL) { in coap_register_async() 40 s = (coap_async_state_t *)coap_malloc(sizeof(coap_async_state_t) + in coap_register_async() 42 if (!s) { in coap_register_async() 47 memset(s, 0, sizeof(coap_async_state_t) + request->hdr->token_length); in coap_register_async() 50 s->flags = flags & ~COAP_ASYNC_CONFIRM; in coap_register_async() 52 s->flags |= COAP_ASYNC_CONFIRM; in coap_register_async() 54 s->appdata = data; in coap_register_async() 56 memcpy(&s->peer, peer, sizeof(coap_address_t)); in coap_register_async() [all …]
|
D | uri.c | 37 strnchr(unsigned char *s, size_t len, unsigned char c) { in strnchr() argument 38 while (len && *s++ != c) in strnchr() 41 return len ? s : NULL; in strnchr() 225 check_segment(const unsigned char *s, size_t length) { in check_segment() argument 230 if (*s == '%') { in check_segment() 231 if (length < 2 || !(isxdigit(s[1]) && isxdigit(s[2]))) in check_segment() 234 s += 2; in check_segment() 238 ++s; ++n; --length; in check_segment() 264 make_decoded_option(const unsigned char *s, size_t length, in make_decoded_option() argument 274 res = check_segment(s, length); in make_decoded_option() [all …]
|
D | resource.c | 112 unsigned char *next_token = text->s; in match() 129 memcmp(token, pattern->s, pattern->length) == 0) in match() 136 memcmp(text->s, pattern->s, pattern->length) == 0; in match() 192 resource_param.s = COAP_OPT_VALUE(query_filter); 194 && resource_param.s[resource_param.length] != '=') 200 memcmp(resource_param.s, "href", 4) == 0) 203 for (rt_attributes = _rt_attributes; rt_attributes->s; rt_attributes++) { 205 memcmp(resource_param.s, rt_attributes->s, rt_attributes->length) == 0) { 212 query_pattern.s = 219 if ((query_pattern.s[0] == '/') && ((flags & MATCH_URI) == MATCH_URI)) { [all …]
|
D | str.c | 18 str *s = coap_malloc(sizeof(str) + size + 1); in coap_new_string() local 19 if ( !s ) { in coap_new_string() 26 memset(s, 0, sizeof(str)); in coap_new_string() 27 s->s = ((unsigned char *)s) + sizeof(str); in coap_new_string() 28 return s; in coap_new_string() 31 void coap_delete_string(str *s) { in coap_delete_string() argument 32 coap_free(s); in coap_delete_string()
|
D | subscribe.c | 20 coap_subscription_init(coap_subscription_t *s) { in coap_subscription_init() argument 21 assert(s); in coap_subscription_init() 22 memset(s, 0, sizeof(coap_subscription_t)); in coap_subscription_init()
|
D | hashkey.c | 15 coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h) { in coap_hash_impl() argument 26 h[0] = (h[0] << 7) + h[0] + *s++; in coap_hash_impl()
|
/net-tools-3.5.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) \ 180 : "+c" (c), "+D" (d), "+S" (s) \ 210 : "=m" (c), "=m" (d), "=m" (s) \ 211 : "m" (s), "m" (d), "m" (c), "m" (b) \ 291 : "=m" (c), "=m" (d), "=m" (s) \ 292 : "m" (s), "m" (d), "m" (c), "m" (b) \ 326 : "=m" (c), "=m" (d), "=m" (s) \ [all …]
|
D | ecdsa.h | 75 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 95 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 116 const mbedtls_ecp_point *Q, const mbedtls_mpi *r, const mbedtls_mpi *s);
|
/net-tools-3.5.0/libcoap/tests/ |
D | test_uri.c | 26 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "::1", 3); in t_parse_uri1() 31 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri1() 34 CU_ASSERT(uri.query.s == NULL); in t_parse_uri1() 49 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "::1", 3); in t_parse_uri2() 54 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri2() 57 CU_ASSERT(uri.query.s == NULL); in t_parse_uri2() 72 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "localhost", 9); in t_parse_uri3() 79 CU_ASSERT_NSTRING_EQUAL(uri.query.s, "foo&bla=fasel", 13); in t_parse_uri3() 104 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "foo", 3); in t_parse_uri5() 107 CU_ASSERT(uri.path.s == NULL); in t_parse_uri5() [all …]
|
D | test_options.c | 31 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option1() 46 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option2() 50 CU_ASSERT(option.value == teststr.s + 1); in t_parse_option2() 62 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option3() 66 CU_ASSERT(option.value == teststr.s + 1); in t_parse_option3() 78 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option4() 90 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option5() 102 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option6() 114 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option7() 128 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option8() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/library/ |
D | ecdsa.c | 72 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign() argument 134 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( s, r, d ) ); in mbedtls_ecdsa_sign() 135 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &e, &e, s ) ); in mbedtls_ecdsa_sign() 138 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( s, &k, &grp->N ) ); in mbedtls_ecdsa_sign() 139 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( s, s, &e ) ); in mbedtls_ecdsa_sign() 140 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( s, s, &grp->N ) ); in mbedtls_ecdsa_sign() 148 while( mbedtls_mpi_cmp_int( s, 0 ) == 0 ); in mbedtls_ecdsa_sign() 161 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign_det() argument 184 ret = mbedtls_ecdsa_sign( grp, r, s, d, buf, blen, in mbedtls_ecdsa_sign_det() 201 const mbedtls_ecp_point *Q, const mbedtls_mpi *r, const mbedtls_mpi *s) in mbedtls_ecdsa_verify() argument [all …]
|
D | bignum.c | 87 X->s = 1; in mbedtls_mpi_init() 106 X->s = 1; in mbedtls_mpi_free() 199 X->s = Y->s; in mbedtls_mpi_copy() 238 X->s = X->s * ( 1 - assign ) + Y->s * assign; in mbedtls_mpi_safe_cond_assign() 258 int ret, s; in mbedtls_mpi_safe_cond_swap() local 271 s = X->s; in mbedtls_mpi_safe_cond_swap() 272 X->s = X->s * ( 1 - swap ) + Y->s * swap; in mbedtls_mpi_safe_cond_swap() 273 Y->s = Y->s * ( 1 - swap ) + s * swap; in mbedtls_mpi_safe_cond_swap() 298 X->s = ( z < 0 ) ? -1 : 1; in mbedtls_mpi_lset() 424 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s ) in mbedtls_mpi_read_string() argument [all …]
|
D | platform.c | 67 int mbedtls_platform_win32_snprintf( char *s, size_t n, const char *fmt, ... ) in mbedtls_platform_win32_snprintf() argument 73 if( s == NULL || n == 0 || fmt == NULL ) in mbedtls_platform_win32_snprintf() 78 ret = _vsnprintf_s( s, n, _TRUNCATE, fmt, argp ); in mbedtls_platform_win32_snprintf() 80 ret = _vsnprintf( s, n, fmt, argp ); in mbedtls_platform_win32_snprintf() 83 s[n-1] = '\0'; in mbedtls_platform_win32_snprintf() 98 static int platform_snprintf_uninit( char * s, size_t n, in platform_snprintf_uninit() argument 101 ((void) s); in platform_snprintf_uninit() 110 int (*mbedtls_snprintf)( char * s, size_t n, 114 int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n, in mbedtls_platform_set_snprintf() argument
|
D | x509_create.c | 42 #define ADD_STRLEN( s ) s, sizeof( s ) - 1 argument 92 const char *s = name, *c = s; in mbedtls_x509_string_to_names() local 93 const char *end = s + strlen( s ); in mbedtls_x509_string_to_names() 106 if( ( oid = x509_at_oid_from_name( s, c - s ) ) == NULL ) in mbedtls_x509_string_to_names() 112 s = c + 1; in mbedtls_x509_string_to_names() 140 s = c + 1; in mbedtls_x509_string_to_names() 144 if( !in_tag && s != c + 1 ) in mbedtls_x509_string_to_names()
|
D | pem.c | 63 static int pem_get_iv( const unsigned char *s, unsigned char *iv, in pem_get_iv() argument 70 for( i = 0; i < iv_len * 2; i++, s++ ) in pem_get_iv() 72 if( *s >= '0' && *s <= '9' ) j = *s - '0'; else in pem_get_iv() 73 if( *s >= 'A' && *s <= 'F' ) j = *s - '7'; else in pem_get_iv() 74 if( *s >= 'a' && *s <= 'f' ) j = *s - 'W'; else in pem_get_iv()
|
/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | README.md | 59 SHA-1 : 3644 Kb/s, 32 cycles/byte 60 SHA-256 : 1957 Kb/s, 59 cycles/byte 61 SHA-512 : 587 Kb/s, 200 cycles/byte 62 AES-CBC-128 : 1359 Kb/s, 86 cycles/byte 63 AES-CBC-192 : 1183 Kb/s, 99 cycles/byte 64 AES-CBC-256 : 1048 Kb/s, 111 cycles/byte 65 AES-GCM-128 : 421 Kb/s, 279 cycles/byte 66 AES-GCM-192 : 403 Kb/s, 292 cycles/byte 67 AES-GCM-256 : 385 Kb/s, 305 cycles/byte 68 AES-CCM-128 : 542 Kb/s, 216 cycles/byte [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecdsa.function | 15 mbedtls_mpi d, r, s; 21 mbedtls_mpi_init( &d ); mbedtls_mpi_init( &r ); mbedtls_mpi_init( &s ); 31 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, buf, sizeof( buf ), 33 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, buf, sizeof( buf ), &Q, &r, &s ) == 0 ); 38 mbedtls_mpi_free( &d ); mbedtls_mpi_free( &r ); mbedtls_mpi_free( &s ); 49 mbedtls_mpi d, r, s, r_check, s_check; 56 mbedtls_mpi_init( &d ); mbedtls_mpi_init( &r ); mbedtls_mpi_init( &s ); 82 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, hash, hlen, 86 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &s, &s_check ) == 0 ); 93 mbedtls_mpi_free( &d ); mbedtls_mpi_free( &r ); mbedtls_mpi_free( &s ); [all …]
|
/net-tools-3.5.0/libcoap/examples/ |
D | client.c | 83 if (!output_file.s || (output_file.length && output_file.s[0] == '-')) in append_to_output() 86 if (!(file = fopen((char *)output_file.s, "w"))) { in append_to_output() 108 if (!output_file.s || (output_file.length && output_file.s[0] == '-')) in close_output() 148 if ( !coap_add_token(pdu, the_token.length, the_token.s)) { in coap_new_request() 196 if (!coap_add_token(pdu, the_token.length, the_token.s)) { in clear_obs() 270 memcpy(addrstr, server->s, server->length); in resolve_address() 311 memcmp(received->hdr->token, the_token.s, the_token.length) == 0; in check_token() 477 payload.s, in message_handler() 700 res = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in cmdline_uri() 715 res = coap_split_query(uri.query.s, uri.query.length, buf, &buflen); in cmdline_uri() [all …]
|
D | coap-rd.c | 81 coap_free(rd->data.s); in rd_delete() 119 if (rd && rd->data.s) in hnd_get_resource() 120 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource() 154 tmp.s = (unsigned char *)coap_malloc(tmp.length); in hnd_put_resource() 155 if (!tmp.s) { in hnd_put_resource() 161 coap_free(rd->data.s); in hnd_put_resource() 162 rd->data.s = tmp.s; in hnd_put_resource() 164 memcpy(rd->data.s, data, rd->data.length); in hnd_put_resource() 275 result->s = ++data; in parse_param() 369 rd->data.s = (unsigned char *)coap_malloc(rd->data.length); in make_rd() [all …]
|
D | tiny.c | 68 int s; in get_context() local 77 s = getaddrinfo(node, port, &hints, &result); in get_context() 78 if ( s != 0 ) { in get_context() 79 fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s)); in get_context()
|
/net-tools-3.5.0/python-websocket-server/tests/ |
D | utils.py | 14 s = WebsocketServer(0, loglevel=logging.DEBUG) 15 server_thread = Thread(target=s.run_forever) 18 yield s 19 s.server_close()
|
/net-tools-3.5.0/libcoap/include/coap/ |
D | encode.h | 37 …NCODE_8_4_UP(v,ls,s) (v < HIBIT ? v : (ls = coap_fls(v) - Nn, (s = (((v + ((1<<E<<ls)-1)) >> ls) &… argument
|
D | async.h | 108 coap_async_state_t **s); 140 coap_touch_async(coap_async_state_t *s) { coap_ticks(&s->created); } in coap_touch_async() argument
|
D | str.h | 17 unsigned char *s; /* string data */ member 20 #define COAP_SET_STR(st,l,v) { (st)->length = (l), (st)->s = (v); }
|
/net-tools-3.5.0/docker/ |
D | Dockerfile | 39 install -s -m755 /mosquitto/client/mosquitto_pub \ 41 install -s -m755 /mosquitto/client/mosquitto_rr \ 43 install -s -m755 /mosquitto/client/mosquitto_sub \ 45 install -s -m644 /mosquitto/lib/libmosquitto.so.1 \ 47 install -s -m755 /mosquitto/src/mosquitto /usr/local/sbin/mosquitto && \ 48 install -s -m755 /mosquitto/src/mosquitto_passwd \
|