Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 18 of 18) sorted by relevance

/net-tools-2.7.6/mbedtls-2.4.0/library/
Dcipher.c460 size_t data_len ) in add_pkcs_padding() argument
462 size_t padding_len = output_len - data_len; in add_pkcs_padding()
466 output[data_len + i] = (unsigned char) padding_len; in add_pkcs_padding()
470 size_t *data_len ) in get_pkcs_padding() argument
475 if( NULL == input || NULL == data_len ) in get_pkcs_padding()
479 *data_len = input_len - padding_len; in get_pkcs_padding()
500 size_t output_len, size_t data_len ) in add_one_and_zeros_padding() argument
502 size_t padding_len = output_len - data_len; in add_one_and_zeros_padding()
505 output[data_len] = 0x80; in add_one_and_zeros_padding()
507 output[data_len + i] = 0x00; in add_one_and_zeros_padding()
[all …]
Dctr_drbg.c143 const unsigned char *data, size_t data_len ) in block_cipher_df() argument
155 if( data_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in block_cipher_df()
169 *p++ = ( data_len >> 24 ) & 0xff; in block_cipher_df()
170 *p++ = ( data_len >> 16 ) & 0xff; in block_cipher_df()
171 *p++ = ( data_len >> 8 ) & 0xff; in block_cipher_df()
172 *p++ = ( data_len ) & 0xff; in block_cipher_df()
175 memcpy( p, data, data_len ); in block_cipher_df()
176 p[data_len] = 0x80; in block_cipher_df()
178 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
Dpkcs12.c233 static void pkcs12_fill_buffer( unsigned char *data, size_t data_len, in pkcs12_fill_buffer() argument
239 while( data_len > 0 ) in pkcs12_fill_buffer()
241 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer()
244 data_len -= use_len; in pkcs12_fill_buffer()
Dhmac_drbg.c103 const unsigned char *data, size_t data_len ) in mbedtls_hmac_drbg_seed_buf() argument
118 mbedtls_hmac_drbg_update( ctx, data, data_len ); in mbedtls_hmac_drbg_seed_buf()
Decp.c539 unsigned char data_len; in mbedtls_ecp_tls_read_point() local
548 data_len = *(*buf)++; in mbedtls_ecp_tls_read_point()
549 if( data_len < 1 || data_len > buf_len - 1 ) in mbedtls_ecp_tls_read_point()
556 *buf += data_len; in mbedtls_ecp_tls_read_point()
558 return mbedtls_ecp_point_read_binary( grp, pt, buf_start, data_len ); in mbedtls_ecp_tls_read_point()
/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/
Dtest_suite_camellia.function89 int key_len, data_len;
100 data_len = unhexify( src_str, hex_src_string );
103 …TEST_ASSERT( mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, data_len, iv_str, src_str…
106 hexify( dst_str, output, data_len );
127 int key_len, data_len;
138 data_len = unhexify( src_str, hex_src_string );
141 …TEST_ASSERT( mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_DECRYPT, data_len, iv_str, src_str…
144 hexify( dst_str, output, data_len );
Dtest_suite_blowfish.function89 int key_len, data_len;
100 data_len = unhexify( src_str, hex_src_string );
104 …TEST_ASSERT( mbedtls_blowfish_crypt_cbc( &ctx, MBEDTLS_BLOWFISH_ENCRYPT, data_len , iv_str, src_st…
107 hexify( dst_str, output, data_len );
128 int key_len, data_len;
139 data_len = unhexify( src_str, hex_src_string );
142 …TEST_ASSERT( mbedtls_blowfish_crypt_cbc( &ctx, MBEDTLS_BLOWFISH_DECRYPT, data_len , iv_str, src_st…
145 hexify( dst_str, output, data_len );
Dtest_suite_aes.function89 int key_len, data_len;
100 data_len = unhexify( src_str, hex_src_string );
103 …TEST_ASSERT( mbedtls_aes_crypt_cbc( &ctx, MBEDTLS_AES_ENCRYPT, data_len, iv_str, src_str, output )…
106 hexify( dst_str, output, data_len );
127 int key_len, data_len;
138 data_len = unhexify( src_str, hex_src_string );
141 …TEST_ASSERT( mbedtls_aes_crypt_cbc( &ctx, MBEDTLS_AES_DECRYPT, data_len, iv_str, src_str, output )…
144 hexify( dst_str, output, data_len );
Dtest_suite_pkcs5.function56 size_t ref_out_len, data_len, pw_len;
61 data = unhexify_alloc( data_hex, &data_len );
67 pw, pw_len, data, data_len, my_out );
Dtest_suite_pkparse.function122 int data_len;
130 data_len = unhexify( buf, key_data );
132 TEST_ASSERT( mbedtls_pk_parse_key( &pk, buf, data_len, NULL, 0 ) == ( result ) );
Dtest_suite_debug.function113 size_t data_len;
121 data_len = unhexify( data, data_string );
127 mbedtls_debug_print_buf( &ssl, 0, file, line, text, data, data_len );
Dtest_suite_x509parse.function369 int data_len, res;
375 data_len = unhexify( buf, crt_data );
377 TEST_ASSERT( mbedtls_x509_crt_parse( &crt, buf, data_len ) == ( result ) );
399 int data_len, res;
405 data_len = unhexify( buf, crl_data );
407 TEST_ASSERT( mbedtls_x509_crl_parse( &crl, buf, data_len ) == ( result ) );
/net-tools-2.7.6/libcoap/include/coap/
Dblock.h65 coap_more_blocks(size_t data_len, unsigned int num, unsigned short szx) { in coap_more_blocks() argument
66 return ((num+1) << (szx + 4)) < data_len; in coap_more_blocks()
/net-tools-2.7.6/libcoap/examples/
Dcoap-rd.c250 size_t data_len, in parse_param() argument
259 while (search_len <= data_len) { in parse_param()
264 data_len -= search_len; in parse_param()
267 if (!data_len || *data == '=' || *data == '&') { in parse_param()
268 while (data_len && *data != '=') { in parse_param()
269 ++data; --data_len; in parse_param()
272 if (data_len > 1 && result) { in parse_param()
276 while (--data_len && *data != '&') { in parse_param()
286 while (--data_len && *data++ != '&') in parse_param()
/net-tools-2.7.6/libcoap/src/
Ddebug.c382 size_t data_len; in coap_show_pdu() local
458 if (coap_get_data((coap_pdu_t *)pdu, &data_len, &data)) { in coap_show_pdu()
464 while (data_len--) { in coap_show_pdu()
469 if (print_readable(data, data_len, buf, sizeof(buf), 0)) { in coap_show_pdu()
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Dhmac_drbg.h155 const unsigned char *data, size_t data_len );
Dcipher.h231 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
232 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
/net-tools-2.7.6/
Dcoap-client.c181 .data_len = length, \
195 .data_len = length, \
211 .data_len = length, \
226 .data_len = length, \
313 int data_len; member
764 send_data_len = data[user_data->index].data_len; in create_pdu()