Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 50) sorted by relevance

12

/net-tools-3.4.0/libcoap/examples/contiki/
Dserver.c145 coap_resource_t *r; in init_coap_resources() local
147 r = coap_resource_init(NULL, 0, 0); in init_coap_resources()
148 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_index); in init_coap_resources()
150 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_coap_resources()
151 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"General Info\"", 14, 0); in init_coap_resources()
152 coap_add_resource(ctx, r); in init_coap_resources()
157 r = coap_resource_init((unsigned char *)"time", 4, 0); in init_coap_resources()
158 if (!r) in init_coap_resources()
161 r->observable = 1; in init_coap_resources()
162 time_resource = r; in init_coap_resources()
[all …]
/net-tools-3.4.0/libcoap/tests/
Dtest_wellknown.c29 coap_resource_t *r; in t_wellknown1() local
40 r = coap_resource_init(NULL, 0, 0); in t_wellknown1()
42 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in t_wellknown1()
43 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"some attribute\"", 16, 0); in t_wellknown1()
45 coap_add_resource(ctx, r); in t_wellknown1()
51 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
61 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
69 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
78 coap_resource_t *r; in t_wellknown2() local
88 r = coap_resource_init((unsigned char *)"abcd", 4, 0); in t_wellknown2()
[all …]
/net-tools-3.4.0/libcoap/include/coap/
Dresource.h119 coap_resource_set_mode(coap_resource_t *r, int mode) { in coap_resource_set_mode() argument
120 r->flags = (r->flags & !COAP_RESOURCE_FLAGS_NOTIFY_CON) | mode; in coap_resource_set_mode()
348 #define RESOURCES_ADD(r, obj) \ argument
349 LL_PREPEND((r), (obj))
351 #define RESOURCES_DELETE(r, obj) \ argument
352 LL_DELETE((r), (obj))
354 #define RESOURCES_ITER(r,tmp) \ argument
356 LL_FOREACH((r), tmp)
358 #define RESOURCES_FIND(r, k, res) { \ argument
361 LL_FOREACH((r), tmp) { \
[all …]
Dencode.h26 #define COAP_PSEUDOFP_DECODE_8_4(r) (r < HIBIT ? r : (r & MMASK) << (r & EMASK)) argument
/net-tools-3.4.0/mbedtls-2.4.0/library/
Decdsa.c72 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign() argument
98 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( r, &R.X, &grp->N ) ); in mbedtls_ecdsa_sign()
106 while( mbedtls_mpi_cmp_int( r, 0 ) == 0 ); in mbedtls_ecdsa_sign()
134 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( s, r, d ) ); 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
217 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in mbedtls_ecdsa_verify()
242 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &u2, r, &s_inv ) ); in mbedtls_ecdsa_verify()
268 if( mbedtls_mpi_cmp_mpi( &R.X, r ) != 0 ) in mbedtls_ecdsa_verify()
[all …]
Dmemory_buffer_alloc.c651 unsigned char *p, *q, *r, *end; in mbedtls_memory_buffer_alloc_self_test() local
661 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
665 check_pointer( r ) == 0 ); in mbedtls_memory_buffer_alloc_self_test()
667 mbedtls_free( r ); in mbedtls_memory_buffer_alloc_self_test()
690 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
694 check_pointer( r ) == 0 ); in mbedtls_memory_buffer_alloc_self_test()
696 mbedtls_free( r ); in mbedtls_memory_buffer_alloc_self_test()
Dbignum.c499 mbedtls_mpi_uint r; in mpi_write_hlp() local
504 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_int( &r, X, radix ) ); in mpi_write_hlp()
510 if( r < 10 ) in mpi_write_hlp()
511 *(*p)++ = (char)( r + 0x30 ); in mpi_write_hlp()
513 *(*p)++ = (char)( r + 0x37 ); in mpi_write_hlp()
1223 mbedtls_mpi_uint u0, mbedtls_mpi_uint d, mbedtls_mpi_uint *r ) in mbedtls_int_div_int() argument
1240 if (r != NULL) *r = ~0; in mbedtls_int_div_int()
1252 if( r != NULL ) in mbedtls_int_div_int()
1253 *r = (mbedtls_mpi_uint)( dividend - (quotient * d ) ); in mbedtls_int_div_int()
1305 if (r != NULL) in mbedtls_int_div_int()
[all …]
/net-tools-3.4.0/libcoap/src/
Dresource.c233 RESOURCES_ITER(context->resources, r) {
239 if (!match(&r->uri, &query_pattern, (flags & MATCH_PREFIX) != 0, (flags & MATCH_SUBSTRING) != 0))
244 attr = coap_find_attr(r, resource_param.s, resource_param.length);
267 result = coap_print_link(r, p, &left, &offset);
289 coap_resource_t *r; local
292 r = (coap_resource_t *)memp_malloc(MEMP_COAP_RESOURCE);
295 r = (coap_resource_t *)coap_malloc_type(COAP_RESOURCE, sizeof(coap_resource_t));
297 if (r) {
298 memset(r, 0, sizeof(coap_resource_t));
300 r->uri.s = (unsigned char *)uri;
[all …]
/net-tools-3.4.0/libcoap/examples/
Detsi_iot_01.c267 coap_resource_t *r; in hnd_post_test() local
275 r = coap_resource_init(uri->data, uri->length, 0); in hnd_post_test()
276 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_resource); in hnd_post_test()
277 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_resource); in hnd_post_test()
286 coap_add_resource(ctx, r); in hnd_post_test()
287 coap_add_payload(r->key, test_payload, uri); in hnd_post_test()
534 coap_resource_t *r; in init_resources() local
545 r = coap_resource_init((unsigned char *)"test", 4, 0); in init_resources()
546 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_resource); in init_resources()
547 coap_register_handler(r, COAP_REQUEST_POST, hnd_post_test); in init_resources()
[all …]
Dcoap-server.c290 coap_resource_t *r; in init_resources() local
292 r = coap_resource_init(NULL, 0, 0); in init_resources()
293 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_index); in init_resources()
295 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_resources()
296 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"General Info\"", 14, 0); in init_resources()
297 coap_add_resource(ctx, r); in init_resources()
302 r = coap_resource_init((unsigned char *)"time", 4, COAP_RESOURCE_FLAGS_NOTIFY_CON); in init_resources()
303 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_time); in init_resources()
304 coap_register_handler(r, COAP_REQUEST_PUT, hnd_put_time); in init_resources()
305 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_time); in init_resources()
[all …]
Dcoap-rd.c395 coap_resource_t *r; in hnd_post_rd() local
466 r = coap_resource_init(loc, loc_size, COAP_RESOURCE_FLAGS_RELEASE_URI); in hnd_post_rd()
467 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_resource); in hnd_post_rd()
468 coap_register_handler(r, COAP_REQUEST_PUT, hnd_put_resource); in hnd_post_rd()
469 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_resource); in hnd_post_rd()
478 coap_add_attr(r, in hnd_post_rd()
494 coap_add_attr(r, in hnd_post_rd()
502 add_source_address(r, peer); in hnd_post_rd()
515 coap_add_resource(ctx, r); in hnd_post_rd()
541 coap_resource_t *r; in init_resources() local
[all …]
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecdsa.function15 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,
85 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &r, &r_check ) == 0 );
93 mbedtls_mpi_free( &d ); mbedtls_mpi_free( &r ); mbedtls_mpi_free( &s );
[all …]
Dtest_suite_ecjpake.data52 ECJPAKE round one: KKP1: zero-length r
55 ECJPAKE round one: KKP1: no data for r
58 ECJPAKE round one: KKP1: corrupted r
100 ECJPAKE round one: KKP2: zero-length r
103 ECJPAKE round one: KKP2: no data for r
106 ECJPAKE round one: KKP2: corrupted r
166 ECJPAKE round two client: zero-length r
169 ECJPAKE round two client: no data for r
172 ECJPAKE round two client: corrupted r
220 ECJPAKE round two server: zero-length r
[all …]
Dtest_suite_base64.data79 Base64 decode "Zm9vYmFy\r\n" (CRLF at end)
82 Base64 decode "Zm9vYmFy\r" (CR at end)
91 Base64 decode "Zm9vYmFy \r\n" (SP+CRLF at end)
94 Base64 decode "Zm9vYmFy \r" (SP+CR at end)
103 Base64 decode "Zm9vYmFy \r\n" (2SP+CRLF at end)
106 Base64 decode "Zm9vYmFy \r" (2SP+CR at end)
Dtest_suite_pkwrite.function31 f = fopen( key_file, "r" );
63 f = fopen( key_file, "r" );
/net-tools-3.4.0/mbedtls-2.4.0/programs/x509/
Dcert_req.c140 char *p, *q, *r; in main() local
196 if( ( r = strchr( q, ',' ) ) != NULL ) in main()
197 *r++ = '\0'; in main()
216 q = r; in main()
223 if( ( r = strchr( q, ',' ) ) != NULL ) in main()
224 *r++ = '\0'; in main()
243 q = r; in main()
Dcert_write.c195 char *p, *q, *r; in main() local
311 if( ( r = strchr( q, ',' ) ) != NULL ) in main()
312 *r++ = '\0'; in main()
331 q = r; in main()
338 if( ( r = strchr( q, ',' ) ) != NULL ) in main()
339 *r++ = '\0'; in main()
358 q = r; in main()
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/
Decdsa.h75 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);
Dbn_mul.h843 mbedtls_t_udbl r; \
847 r = *(s++) * (mbedtls_t_udbl) b; \
848 r0 = (mbedtls_mpi_uint) r; \
849 r1 = (mbedtls_mpi_uint)( r >> biL ); \
/net-tools-3.4.0/
Dcoap-client.c235 #define GET_CON(desc, e, r, c) ENTRY(desc, e, true, GET, r, sizeof(r), c, \ argument
237 #define POST_CON(desc, e, r, c) ENTRY(desc, e, true, POST, r, sizeof(r), c, \ argument
241 #define DELETE_CON(desc,e, r, c) ENTRY(desc, e, true, DELETE, r, sizeof(r), c,\ argument
244 #define GET_NON(desc, e, r, c) ENTRY(desc, e, true, GET, r, sizeof(r), c, \ argument
246 #define POST_NON(desc, e, r, c) ENTRY(desc, e, true, POST, r, sizeof(r), c, \ argument
250 #define DELETE_NON(desc,e, r, c) ENTRY(desc, e, true, DELETE, r, sizeof(r), c,\ argument
253 #define GET_CON_TOKEN(desc, e, r, c) ENTRY3(desc, e, true, GET, r, sizeof(r), \ argument
255 #define POST_CON_TOKEN(desc, e, r, c) ENTRY3(desc, e, true, POST, r, \ argument
256 sizeof(r), c, COAP_MESSAGE_CON)
260 #define DELETE_CON_TOKEN(desc,e, r, c) ENTRY3(desc, e, true, DELETE, r, \ argument
[all …]
/net-tools-3.4.0/tinydtls-0.8.2/ecc/
Decc.c315 uint8_t n, r=0; in isZero() local
317 if (A[n] == 0) r++; in isZero()
319 return r==8; in isZero()
534 int ecc_ecdsa_sign(const uint32_t *d, const uint32_t *e, const uint32_t *k, uint32_t *r, uint32_t *… in ecc_ecdsa_sign() argument
544 ecc_ec_mult(ecc_g_point_x, ecc_g_point_y, k, r, tmp1); in ecc_ecdsa_sign()
547 fieldModO(r, r, 8); in ecc_ecdsa_sign()
550 if (isZero(r)) in ecc_ecdsa_sign()
555 fieldMult(r, d, tmp1, arrayLength); in ecc_ecdsa_sign()
593 int ecc_ecdsa_validate(const uint32_t *x, const uint32_t *y, const uint32_t *e, const uint32_t *r, … in ecc_ecdsa_validate() argument
614 fieldMult(r, w, tmp, arrayLength); in ecc_ecdsa_validate()
[all …]
Decc.h52 int ecc_ecdsa_validate(const uint32_t *x, const uint32_t *y, const uint32_t *e, const uint32_t *r, …
53 int ecc_ecdsa_sign(const uint32_t *d, const uint32_t *e, const uint32_t *k, uint32_t *r, uint32_t *…
/net-tools-3.4.0/mbedtls-2.4.0/tests/data_files/dir4/
Dcert83.crt8 r+i1gI2iCVXi3KtFMB8GA1UdIwQYMBaAFLf6ey/edCSdKDhoOOVOJGkI+jtfMAwG
/net-tools-3.4.0/mbedtls-2.4.0/tests/data_files/
Dcrl-rsa-pss-sha256.pem6 FhcNMTQwMTIwMTM0MzA1WqBnMGUwYwYDVR0jBFwwWoAUtFrkpbPe0lL2udWmlQ/r
Dcrl-rsa-pss-sha512.pem6 FhcNMTQwMTIwMTM0MzA1WqBnMGUwYwYDVR0jBFwwWoAUtFrkpbPe0lL2udWmlQ/r

12