/net-tools-3.4.0/tinydtls-0.8.2/ecc/ |
D | testfield.c | 110 assert(ecc_isSame(one, one, arrayLength)); in fieldAddTest() 112 assert(ecc_isSame(temp, one, arrayLength)); in fieldAddTest() 115 assert(ecc_isSame(temp, two, arrayLength)); in fieldAddTest() 118 assert(ecc_isSame(null, temp, arrayLength)); in fieldAddTest() 121 assert(ecc_isSame(temp, resultFullAdd, arrayLength)); in fieldAddTest() 125 assert(ecc_isSame(one, one, arrayLength)); in fieldSubTest() 127 assert(ecc_isSame(one, temp, arrayLength)); in fieldSubTest() 130 assert(ecc_isSame(null, temp, arrayLength)); in fieldSubTest() 133 assert(ecc_isSame(primeMinusOne, temp, arrayLength)); in fieldSubTest() 138 assert(ecc_isSame(temp2, null64, arrayLength * 2)); in fieldMultTest() [all …]
|
D | testecc.c | 123 assert(ecc_isSame(tempx, resultAddx, arrayLength)); in addTest() 124 assert(ecc_isSame(tempy, resultAddy, arrayLength)); in addTest() 132 assert(ecc_isSame(tempx, resultDoublex, arrayLength)); in doubleTest() 133 assert(ecc_isSame(tempy, resultDoubley, arrayLength)); in doubleTest() 141 assert(ecc_isSame(tempx, resultMultx, arrayLength)); in multTest() 142 assert(ecc_isSame(tempy, resultMulty, arrayLength)); in multTest() 165 assert(ecc_isSame(tempAx2, tempBx2, arrayLength)); in eccdhTest() 166 assert(ecc_isSame(tempAy2, tempBy2, arrayLength)); in eccdhTest() 180 assert(ecc_isSame(tempx, ecdsaTestresultR1, arrayLength)); in ecdsaTest() 181 assert(ecc_isSame(tempy, ecdsaTestresultS1, arrayLength)); in ecdsaTest() [all …]
|
D | test_helper.h | 48 #undef assert 49 #define assert(e) ((e) ? (void)0 : test_assert(__FILE__, __LINE__)) macro
|
/net-tools-3.4.0/libcoap/src/ |
D | pdu.c | 11 #if defined(HAVE_ASSERT_H) && !defined(assert) 30 assert(pdu); in coap_pdu_clear() 82 assert(size <= COAP_MAX_PDU_SIZE); in coap_pdu_init() 175 assert(pdu); in coap_add_option() 207 assert(pdu); in coap_add_option_later() 235 assert(pdu); in coap_add_data() 236 assert(pdu->data == NULL); in coap_add_data() 243 assert(pdu->data == NULL); in coap_add_data() 258 assert(pdu); in coap_get_data() 259 assert(len); in coap_get_data() [all …]
|
D | option.c | 13 #if defined(HAVE_ASSERT_H) && !defined(assert) 43 assert(opt); assert(result); in coap_opt_parse() 122 assert(pdu); in coap_option_iterator_init() 123 assert(pdu->hdr); in coap_option_iterator_init() 124 assert(oi); in coap_option_iterator_init() 135 assert((sizeof(coap_hdr_t) + pdu->hdr->token_length) <= pdu->length); in coap_option_iterator_init() 148 assert(oi); in opt_finished() 165 assert(oi); in coap_option_next() 180 assert(optsize <= oi->length); in coap_option_next() 333 assert(opt); in coap_opt_setheader() [all …]
|
D | subscribe.c | 13 #if defined(HAVE_ASSERT_H) && !defined(assert) 21 assert(s); in coap_subscription_init()
|
D | block.c | 11 #if defined(HAVE_ASSERT_H) && !defined(assert) 49 assert(block); in coap_get_block() 69 assert(pdu); in coap_write_block_opt()
|
D | address.c | 18 assert(a); assert(b); in coap_address_equals()
|
D | mem.c | 17 #define assert(...) macro 105 assert(container); in coap_malloc_type()
|
D | resource.c | 106 assert(text); assert(pattern); in match() 215 assert((resource_param.length + 1) <= COAP_OPT_LENGTH(query_filter)); 408 assert(resource); 527 assert(resource); 528 assert(peer); 547 assert(observer); 619 assert(h); /* we do not allow subscriptions if no
|
D | coap_io.c | 253 assert(local_interface); in coap_network_send() 421 assert(ep); in coap_network_read() 422 assert(packet); in coap_network_read() 448 assert(sizeof(msg_control) == CMSG_LEN(sizeof(struct sockaddr_storage))); in coap_network_read() 486 assert((*packet)->src.size == sizeof(struct sockaddr_in6)); in coap_network_read()
|
D | uri.c | 11 #if defined(HAVE_ASSERT_H) && !defined(assert) 281 assert(written <= buflen); in make_decoded_option() 363 assert(state); in write_option()
|
D | net.c | 633 assert(request); in coap_send_error() 634 assert(dst); in coap_send_error() 761 assert(nextpdu); /* we have just inserted a node */ in coap_send_confirmed() 1049 assert(request); in coap_new_error_response() 1211 assert(coap_encode_var_bytes(buf, in coap_wellknown_response() 1219 assert(resp->length <= resp->max_size); in coap_wellknown_response() 1338 assert(request); in no_response() 1339 assert(response); in no_response()
|
D | debug.c | 15 #if defined(HAVE_ASSERT_H) && !defined(assert) 125 assert(data || len == 0); in print_readable()
|
/net-tools-3.4.0/tinydtls-0.8.2/ |
D | session.c | 32 #ifndef assert 34 # define assert(x) macro 74 assert(sess); in dtls_session_init() 81 assert(a); assert(b); in dtls_session_equals()
|
D | hmac.c | 35 #define assert(x) macro 78 assert(ctx); in dtls_hmac_update() 97 assert(ctx); in dtls_hmac_init() 131 assert(ctx); in dtls_hmac_finalize() 132 assert(result); in dtls_hmac_finalize() 160 assert(ctx); in main()
|
D | netq.c | 16 #ifndef assert 18 # define assert(x) macro 64 assert(queue); in netq_insert_node() 65 assert(node); in netq_insert_node()
|
D | dtls.c | 908 assert(config); in dtls_update_parameters() 909 assert(data_length > DTLS_HS_LENGTH + DTLS_CH_LENGTH); in dtls_update_parameters() 1088 assert(peer); in clear_hs_hash() 1560 assert(len == DTLS_COOKIE_LENGTH); in dtls_verify_peer() 1592 assert(p == mycookie); in dtls_verify_peer() 1702 assert(is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(config->cipher)); in check_client_certificate_verify() 1824 assert(p - buf <= sizeof(buf)); in dtls_send_server_hello() 1860 assert(p - buf <= sizeof(buf)); in dtls_send_certificate_ecdsa() 1980 assert(p - buf <= sizeof(buf)); in dtls_send_server_key_exchange_ecdh() 1997 assert(len <= DTLS_PSK_MAX_CLIENT_IDENTITY_LEN); in dtls_send_server_key_exchange_psk() [all …]
|
D | crypto.c | 35 #define assert(x) macro 273 assert(hmac_ctx); in dtls_mac() 289 assert(ccm_ctx); in dtls_ccm_encrypt() 306 assert(ccm_ctx); in dtls_ccm_decrypt()
|
/net-tools-3.4.0/libcoap/include/coap/ |
D | address.h | 117 assert(addr); in coap_address_init() 133 assert(a); assert(b); in coap_address_equals() 145 assert(a); in coap_address_isany()
|
D | utlist.h | 463 assert(head != NULL); \ 464 assert(el != NULL); \ 465 assert(add != NULL); \ 483 assert(head != NULL); \ 484 assert(el != NULL); \ 485 assert(add != NULL); \ 559 assert((del)->prev != NULL); \ 605 assert(head != NULL); \ 606 assert(el != NULL); \ 607 assert(add != NULL); \ [all …]
|
D | hashkey.h | 52 assert(Str); \
|
D | resource.h | 251 assert(resource); in coap_register_handler() 252 …assert(method > 0 && (size_t)(method-1) < sizeof(resource->handler)/sizeof(coap_method_handler_t)); in coap_register_handler()
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | helpers.function | 68 #define assert(a) if( !( a ) ) \ 154 assert( strlen( ibuf ) % 2 == 0 ); /* must be even number of bytes */ 166 assert( 0 ); 176 assert( 0 ); 221 assert( p != NULL ); 248 assert( obuf != NULL );
|
/net-tools-3.4.0/tinydtls-0.8.2/sha2/ |
D | sha2.c | 41 #ifndef assert 43 # define assert(x) macro 563 assert(context != (SHA256_CTX*)0 && data != (sha2_byte*)0); in SHA256_Update() 607 assert(context != (SHA256_CTX*)0); in SHA256_Final() 670 assert(context != (SHA256_CTX*)0); in SHA256_End() 886 assert(context != (SHA512_CTX*)0 && data != (sha2_byte*)0); in SHA512_Update() 970 assert(context != (SHA512_CTX*)0); in SHA512_Final() 1000 assert(context != (SHA512_CTX*)0); in SHA512_End() 1046 assert(context != (SHA384_CTX*)0); in SHA384_Final() 1076 assert(context != (SHA384_CTX*)0); in SHA384_End()
|