/net-tools-3.6.0/tinydtls-0.8.2/tests/ |
D | ccm-test.c | 59 for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) { 61 if (rijndael_set_key_enc_only(&ctx, data[n].key, 8*sizeof(data[n].key)) < 0) { 66 len = dtls_ccm_encrypt_message(&ctx, data[n].M, data[n].L, data[n].nonce, 67 data[n].msg + data[n].la, 68 data[n].lm - data[n].la, 69 data[n].msg, data[n].la); 71 len += + data[n].la; 73 if (len != data[n].r_lm || memcmp(data[n].msg, data[n].result, len)) 79 dump(data[n].msg, len); 81 len = dtls_ccm_decrypt_message(&ctx, data[n].M, data[n].L, data[n].nonce, [all …]
|
/net-tools-3.6.0/libcoap/src/ |
D | pdu.c | 38 pdu->data = NULL; in coap_pdu_clear() 153 coap_add_token(coap_pdu_t *pdu, size_t len, const unsigned char *data) { in coap_add_token() argument 161 memcpy(pdu->hdr->token, data, len); in coap_add_token() 164 pdu->data = NULL; in coap_add_token() 171 coap_add_option(coap_pdu_t *pdu, unsigned short type, unsigned int len, const unsigned char *data) { in coap_add_option() argument 176 pdu->data = NULL; in coap_add_option() 187 type - pdu->max_delta, data, len); in coap_add_option() 208 pdu->data = NULL; in coap_add_option_later() 234 coap_add_data(coap_pdu_t *pdu, unsigned int len, const unsigned char *data) { in coap_add_data() argument 236 assert(pdu->data == NULL); in coap_add_data() [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | dtls.c | 701 static int verify_ext_eliptic_curves(uint8 *data, size_t data_length) { in verify_ext_eliptic_curves() argument 705 i = dtls_uint16_to_int(data); in verify_ext_eliptic_curves() 706 data += sizeof(uint16); in verify_ext_eliptic_curves() 714 curve_name = dtls_uint16_to_int(data); in verify_ext_eliptic_curves() 715 data += sizeof(uint16); in verify_ext_eliptic_curves() 725 static int verify_ext_cert_type(uint8 *data, size_t data_length) { in verify_ext_cert_type() argument 729 i = dtls_uint8_to_int(data); in verify_ext_cert_type() 730 data += sizeof(uint8); in verify_ext_cert_type() 738 cert_type = dtls_uint8_to_int(data); in verify_ext_cert_type() 739 data += sizeof(uint8); in verify_ext_cert_type() [all …]
|
D | hmac.c | 79 dtls_hash_update(&ctx->data, input, ilen); in dtls_hmac_update() 102 dtls_hash_init(&ctx->data); in dtls_hmac_init() 103 dtls_hash_update(&ctx->data, key, klen); in dtls_hmac_init() 104 dtls_hash_finalize(ctx->pad, &ctx->data); in dtls_hmac_init() 112 dtls_hash_init(&ctx->data); in dtls_hmac_init() 134 len = dtls_hash_finalize(buf, &ctx->data); in dtls_hmac_finalize() 136 dtls_hash_init(&ctx->data); in dtls_hmac_finalize() 137 dtls_hash_update(&ctx->data, ctx->pad, DTLS_HMAC_BLOCKSIZE); in dtls_hmac_finalize() 138 dtls_hash_update(&ctx->data, buf, len); in dtls_hmac_finalize() 140 len = dtls_hash_finalize(result, &ctx->data); in dtls_hmac_finalize()
|
D | crypto.c | 468 dtls_hash_ctx data; in dtls_ecdsa_create_sig() local 471 dtls_hash_init(&data); in dtls_ecdsa_create_sig() 472 dtls_hash_update(&data, client_random, client_random_size); in dtls_ecdsa_create_sig() 473 dtls_hash_update(&data, server_random, server_random_size); in dtls_ecdsa_create_sig() 474 dtls_hash_update(&data, keyx_params, keyx_params_size); in dtls_ecdsa_create_sig() 475 dtls_hash_finalize(sha256hash, &data); in dtls_ecdsa_create_sig() 509 dtls_hash_ctx data; in dtls_ecdsa_verify_sig() local 512 dtls_hash_init(&data); in dtls_ecdsa_verify_sig() 513 dtls_hash_update(&data, client_random, client_random_size); in dtls_ecdsa_verify_sig() 514 dtls_hash_update(&data, server_random, server_random_size); in dtls_ecdsa_verify_sig() [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/ |
D | sha2test.pl | 163 $data = $field = ""; 171 $vec->{desc} = $data; 173 $data = $dir . $data if ($data !~ /^\//); 174 $vec->{file} = $data; 176 $vec->{sha256} = $data; 178 $vec->{sha384} = $data; 180 $vec->{sha512} = $data; 182 $data = ""; 186 $data .= $_ . "\n"; 193 $data .= $_; [all …]
|
D | sha2.c | 386 REVERSE32(*data++, W256[j]); \ 398 K256[j] + (W256[j] = *data++); \ 416 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument 474 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument 495 REVERSE32(*data++,W256[j]); in SHA256_Transform() 500 T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + (W256[j] = *data++); in SHA256_Transform() 554 void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) { in SHA256_Update() argument 563 assert(context != (SHA256_CTX*)0 && data != (sha2_byte*)0); in SHA256_Update() 572 MEMCPY_BCOPY(&context->buffer[usedspace], data, freespace); in SHA256_Update() 575 data += freespace; in SHA256_Update() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | entropy_poll.c | 59 int mbedtls_platform_entropy_poll( void *data, unsigned char *output, size_t len, in mbedtls_platform_entropy_poll() argument 63 ((void) data); in mbedtls_platform_entropy_poll() 150 int mbedtls_platform_entropy_poll( void *data, in mbedtls_platform_entropy_poll() argument 155 ((void) data); in mbedtls_platform_entropy_poll() 195 int mbedtls_null_entropy_poll( void *data, in mbedtls_null_entropy_poll() argument 198 ((void) data); in mbedtls_null_entropy_poll() 212 int mbedtls_hardclock_poll( void *data, in mbedtls_hardclock_poll() argument 216 ((void) data); in mbedtls_hardclock_poll() 230 int mbedtls_havege_poll( void *data, in mbedtls_havege_poll() argument 233 mbedtls_havege_state *hs = (mbedtls_havege_state *) data; in mbedtls_havege_poll() [all …]
|
D | md4.c | 113 void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] ) in mbedtls_md4_process() 117 GET_UINT32_LE( X[ 0], data, 0 ); in mbedtls_md4_process() 118 GET_UINT32_LE( X[ 1], data, 4 ); in mbedtls_md4_process() 119 GET_UINT32_LE( X[ 2], data, 8 ); in mbedtls_md4_process() 120 GET_UINT32_LE( X[ 3], data, 12 ); in mbedtls_md4_process() 121 GET_UINT32_LE( X[ 4], data, 16 ); in mbedtls_md4_process() 122 GET_UINT32_LE( X[ 5], data, 20 ); in mbedtls_md4_process() 123 GET_UINT32_LE( X[ 6], data, 24 ); in mbedtls_md4_process() 124 GET_UINT32_LE( X[ 7], data, 28 ); in mbedtls_md4_process() 125 GET_UINT32_LE( X[ 8], data, 32 ); in mbedtls_md4_process() [all …]
|
D | md5.c | 112 void mbedtls_md5_process( mbedtls_md5_context *ctx, const unsigned char data[64] ) in mbedtls_md5_process() 116 GET_UINT32_LE( X[ 0], data, 0 ); in mbedtls_md5_process() 117 GET_UINT32_LE( X[ 1], data, 4 ); in mbedtls_md5_process() 118 GET_UINT32_LE( X[ 2], data, 8 ); in mbedtls_md5_process() 119 GET_UINT32_LE( X[ 3], data, 12 ); in mbedtls_md5_process() 120 GET_UINT32_LE( X[ 4], data, 16 ); in mbedtls_md5_process() 121 GET_UINT32_LE( X[ 5], data, 20 ); in mbedtls_md5_process() 122 GET_UINT32_LE( X[ 6], data, 24 ); in mbedtls_md5_process() 123 GET_UINT32_LE( X[ 7], data, 28 ); in mbedtls_md5_process() 124 GET_UINT32_LE( X[ 8], data, 32 ); in mbedtls_md5_process() [all …]
|
D | md_wrap.c | 112 static void md2_process_wrap( void *ctx, const unsigned char *data ) in md2_process_wrap() argument 114 ((void) data); in md2_process_wrap() 176 static void md4_process_wrap( void *ctx, const unsigned char *data ) in md4_process_wrap() argument 178 mbedtls_md4_process( (mbedtls_md4_context *) ctx, data ); in md4_process_wrap() 238 static void md5_process_wrap( void *ctx, const unsigned char *data ) in md5_process_wrap() argument 240 mbedtls_md5_process( (mbedtls_md5_context *) ctx, data ); in md5_process_wrap() 300 static void ripemd160_process_wrap( void *ctx, const unsigned char *data ) in ripemd160_process_wrap() argument 302 mbedtls_ripemd160_process( (mbedtls_ripemd160_context *) ctx, data ); in ripemd160_process_wrap() 362 static void sha1_process_wrap( void *ctx, const unsigned char *data ) in sha1_process_wrap() argument 364 mbedtls_sha1_process( (mbedtls_sha1_context *) ctx, data ); in sha1_process_wrap() [all …]
|
D | ripemd160.c | 115 void mbedtls_ripemd160_process( mbedtls_ripemd160_context *ctx, const unsigned char data[64] ) in mbedtls_ripemd160_process() 119 GET_UINT32_LE( X[ 0], data, 0 ); in mbedtls_ripemd160_process() 120 GET_UINT32_LE( X[ 1], data, 4 ); in mbedtls_ripemd160_process() 121 GET_UINT32_LE( X[ 2], data, 8 ); in mbedtls_ripemd160_process() 122 GET_UINT32_LE( X[ 3], data, 12 ); in mbedtls_ripemd160_process() 123 GET_UINT32_LE( X[ 4], data, 16 ); in mbedtls_ripemd160_process() 124 GET_UINT32_LE( X[ 5], data, 20 ); in mbedtls_ripemd160_process() 125 GET_UINT32_LE( X[ 6], data, 24 ); in mbedtls_ripemd160_process() 126 GET_UINT32_LE( X[ 7], data, 28 ); in mbedtls_ripemd160_process() 127 GET_UINT32_LE( X[ 8], data, 32 ); in mbedtls_ripemd160_process() [all …]
|
D | sha1.c | 113 void mbedtls_sha1_process( mbedtls_sha1_context *ctx, const unsigned char data[64] ) in mbedtls_sha1_process() 117 GET_UINT32_BE( W[ 0], data, 0 ); in mbedtls_sha1_process() 118 GET_UINT32_BE( W[ 1], data, 4 ); in mbedtls_sha1_process() 119 GET_UINT32_BE( W[ 2], data, 8 ); in mbedtls_sha1_process() 120 GET_UINT32_BE( W[ 3], data, 12 ); in mbedtls_sha1_process() 121 GET_UINT32_BE( W[ 4], data, 16 ); in mbedtls_sha1_process() 122 GET_UINT32_BE( W[ 5], data, 20 ); in mbedtls_sha1_process() 123 GET_UINT32_BE( W[ 6], data, 24 ); in mbedtls_sha1_process() 124 GET_UINT32_BE( W[ 7], data, 28 ); in mbedtls_sha1_process() 125 GET_UINT32_BE( W[ 8], data, 32 ); in mbedtls_sha1_process() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | entropy_poll.h | 52 int mbedtls_null_entropy_poll( void *data, 60 int mbedtls_platform_entropy_poll( void *data, 70 int mbedtls_havege_poll( void *data, 78 int mbedtls_hardclock_poll( void *data, 91 int mbedtls_hardware_poll( void *data, 101 int mbedtls_nv_seed_poll( void *data,
|
/net-tools-3.6.0/libcoap/examples/ |
D | coap-rd.c | 57 str data; /**< points to the resource description */ member 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() 142 unsigned char *data; in hnd_put_resource() 152 if (coap_get_data(request, &tmp.length, &data)) { in hnd_put_resource() 161 coap_free(rd->data.s); in hnd_put_resource() 162 rd->data.s = tmp.s; in hnd_put_resource() 163 rd->data.length = tmp.length; in hnd_put_resource() 164 memcpy(rd->data.s, data, rd->data.length); in hnd_put_resource() [all …]
|
D | etsi_iot_01.c | 48 unsigned char data[]; /* the actual contents */ member 61 unsigned char data[]; /* the actual contents */ member 170 coap_hash(test_payload->data, test_payload->length, etag); in hnd_get_resource() 195 coap_add_block(response, test_payload->length, test_payload->data, in hnd_get_resource() 198 if (!coap_add_data(response, test_payload->length, test_payload->data)) { in hnd_get_resource() 205 coap_add_block(response, test_payload->length, test_payload->data, in hnd_get_resource() 248 unsigned char *data; in hnd_post_test() local 256 coap_get_data(request, &len, &data); in hnd_post_test() 270 uri->length = min(l, snprintf((char *)uri->data, l, "test/%p", test_payload)); in hnd_post_test() 273 memcpy(test_payload->data, data, len); in hnd_post_test() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/yotta/ |
D | create-module.sh | 28 cp data/entropy_hardware_poll.c $TMP/source 29 cp data/target_config.h $TMP/mbedtls 31 data/adjust-config.sh $TREE/scripts/config.pl $TMP/mbedtls/config.h 34 cp -r data/example-* $TMP/test 37 cp data/module.json $TMP 38 cp data/README.md $TMP
|
/net-tools-3.6.0/libcoap/tests/ |
D | test_pdu.c | 39 CU_ASSERT_PTR_NULL(pdu->data); in t_parse_pdu1() 57 CU_ASSERT_PTR_NULL(pdu->data); in t_parse_pdu2() 103 CU_ASSERT_PTR_NULL(pdu->data); in t_parse_pdu5() 142 CU_ASSERT(pdu->data == (unsigned char *)pdu->hdr + 13); in t_parse_pdu7() 143 CU_ASSERT(memcmp(pdu->data, teststr + 13, 7) == 0); in t_parse_pdu7() 167 CU_ASSERT(pdu->data == (unsigned char *)pdu->hdr + 5); in t_parse_pdu8() 168 CU_ASSERT(memcmp(pdu->data, teststr + 5, 7) == 0); in t_parse_pdu8() 268 CU_ASSERT_PTR_NULL(pdu->data); in t_encode_pdu1() 325 CU_ASSERT_PTR_NULL(pdu->data); in t_encode_pdu4() 333 CU_ASSERT_PTR_NULL(pdu->data); in t_encode_pdu4() [all …]
|
/net-tools-3.6.0/ |
D | coap-client.c | 124 char data[]; member 169 const unsigned char *data, 180 .data = test_data, \ 194 .data = test_data, \ 210 .data = test_data, \ 225 .data = test_data, \ 271 #define DATA_ARRAY(var, data, ...) \ argument 272 static const char var [] = { data, __VA_ARGS__ } ; 274 #define DATA_STRING(var, data) \ argument 275 static const char var [] = data; [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecjpake.data | 16 ECJPAKE round one: KKP1: no data 25 ECJPAKE round one: KKP1: no point data 43 ECJPAKE round one: KKP1: no second point data 55 ECJPAKE round one: KKP1: no data for r 64 ECJPAKE round one: KKP2: no data 73 ECJPAKE round one: KKP2: no point data 91 ECJPAKE round one: KKP2: no second point data 103 ECJPAKE round one: KKP2: no data for r 118 ECJPAKE round two client: no data 130 ECJPAKE round two client: no data after ECParams [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/testvectors/testvectors/ |
D | vector017.info | 3 with several others on several test data sets he had tested 4 against. This test vector data set is one Rogier provided 6 that affected SHA-256/384/512 hashes where the data set length 8 the data length after subtracting 111 was an even multiple of 17 (Total length of test vector data: 12271)
|
D | vector015.info | 3 input data set. The input data is the string "qwerty 6 (Total length of test vector data: 393216)
|
/net-tools-3.6.0/libcoap/include/coap/ |
D | pdu.h | 235 unsigned char *data; /**< payload */ member 325 int coap_pdu_parse(unsigned char *data, 344 const unsigned char *data); 357 const unsigned char *data); 377 const unsigned char *data); 386 unsigned char **data);
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/ |
D | ssl_mail_client.c | 242 unsigned char data[128]; in write_ssl_and_get_response() local 258 len = sizeof( data ) - 1; in write_ssl_and_get_response() 259 memset( data, 0, sizeof( data ) ); in write_ssl_and_get_response() 260 ret = mbedtls_ssl_read( ssl, data, len ); in write_ssl_and_get_response() 274 mbedtls_printf("\n%s", data); in write_ssl_and_get_response() 278 if( data[i] != '\n' ) in write_ssl_and_get_response() 281 code[ idx++ ] = data[i]; in write_ssl_and_get_response() 300 unsigned char data[128]; in write_and_get_response() local 313 len = sizeof( data ) - 1; in write_and_get_response() 314 memset( data, 0, sizeof( data ) ); in write_and_get_response() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/ |
D | Makefile | 100 test_suite_aes.ecb.c : suites/test_suite_aes.function suites/test_suite_aes.ecb.data scripts/genera… 104 test_suite_aes.cbc.c : suites/test_suite_aes.function suites/test_suite_aes.cbc.data scripts/genera… 108 test_suite_aes.cfb.c : suites/test_suite_aes.function suites/test_suite_aes.cfb.data scripts/genera… 112 test_suite_aes.rest.c : suites/test_suite_aes.function suites/test_suite_aes.rest.data scripts/gene… 116 test_suite_cipher.aes.c : suites/test_suite_cipher.function suites/test_suite_cipher.aes.data scrip… 120 test_suite_cipher.arc4.c : suites/test_suite_cipher.function suites/test_suite_cipher.arc4.data scr… 124 test_suite_cipher.ccm.c : suites/test_suite_cipher.function suites/test_suite_cipher.ccm.data scrip… 128 test_suite_cipher.gcm.c : suites/test_suite_cipher.function suites/test_suite_cipher.gcm.data scrip… 132 …h.c : suites/test_suite_cipher.function suites/test_suite_cipher.blowfish.data scripts/generate_co… 136 …a.c : suites/test_suite_cipher.function suites/test_suite_cipher.camellia.data scripts/generate_co… [all …]
|