Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 13 of 13) sorted by relevance

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dplatform.c225 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_read() argument
233 if( ( n = fread( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_read()
243 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_write() argument
251 if( ( n = fwrite( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_write()
267 static int platform_nv_seed_read_uninit( unsigned char *buf, size_t buf_len ) in platform_nv_seed_read_uninit() argument
270 ((void) buf_len); in platform_nv_seed_read_uninit()
281 static int platform_nv_seed_write_uninit( unsigned char *buf, size_t buf_len ) in platform_nv_seed_write_uninit() argument
284 ((void) buf_len); in platform_nv_seed_write_uninit()
291 int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len ) =
293 int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len ) =
[all …]
Dentropy.c477 static int mbedtls_entropy_source_self_test_gather( unsigned char *buf, size_t buf_len ) in mbedtls_entropy_source_self_test_gather() argument
482 size_t attempts = buf_len; in mbedtls_entropy_source_self_test_gather()
484 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
487 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
494 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
504 size_t buf_len ) in mbedtls_entropy_source_self_test_check_bits() argument
510 for( i = 0; i < buf_len; i++ ) in mbedtls_entropy_source_self_test_check_bits()
Dctr_drbg.c153 size_t buf_len, use_len; in block_cipher_df() local
178 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
192 use_len = buf_len; in block_cipher_df()
Dssl_ticket.c170 unsigned char *buf, size_t buf_len, in ssl_save_session() argument
174 size_t left = buf_len; in ssl_save_session()
Dpem.c398 unsigned char *buf, size_t buf_len, size_t *olen ) in mbedtls_pem_write_buffer() argument
407 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
Decp.c537 const unsigned char **buf, size_t buf_len ) in mbedtls_ecp_tls_read_point() argument
545 if( buf_len < 2 ) in mbedtls_ecp_tls_read_point()
549 if( data_len < 1 || data_len > buf_len - 1 ) in mbedtls_ecp_tls_read_point()
Dssl_tls.c3286 unsigned char *obuf, size_t buf_len, size_t *olen ) in ssl_check_dtls_clihlo_cookie() argument
3363 if( buf_len < 28 ) in ssl_check_dtls_clihlo_cookie()
3375 &p, obuf + buf_len, cli_id, cli_id_len ) != 0 ) in ssl_check_dtls_clihlo_cookie()
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_asn1write.function15 int buf_len, int result )
29 p = buf + GUARD_LEN + buf_len;
37 TEST_ASSERT( buf[GUARD_LEN + buf_len + i] == GUARD_VAL );
43 TEST_ASSERT( p + asn1_len == buf + GUARD_LEN + buf_len );
52 int buf_len, int result )
65 p = buf + GUARD_LEN + buf_len;
73 TEST_ASSERT( buf[GUARD_LEN + buf_len + i] == GUARD_VAL );
79 TEST_ASSERT( p + asn1_len == buf + GUARD_LEN + buf_len );
87 void mbedtls_asn1_write_len( int len, char *check_str, int buf_len,
100 p = buf + GUARD_LEN + buf_len;
[all …]
Dtest_suite_pem.function17 size_t buf_len, olen = 0, olen2 = 0;
21 buf_len = unhexify( buf, buf_str );
23 ret = mbedtls_pem_write_buffer( start, end, buf, buf_len, NULL, 0, &olen );
30 ret = mbedtls_pem_write_buffer( start, end, buf, buf_len, check_buf, olen, &olen2 );
Dtest_suite_entropy.function60 static int buffer_nv_seed_read( unsigned char *buf, size_t buf_len )
62 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
69 static int buffer_nv_seed_write( unsigned char *buf, size_t buf_len )
71 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
81 static int write_nv_seed( unsigned char *buf, size_t buf_len )
85 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
100 static int read_nv_seed( unsigned char *buf, size_t buf_len )
104 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dplatform.h259 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
260 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
264 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
265 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
276 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
277 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
Dpem.h122 unsigned char *buf, size_t buf_len, size_t *olen );
/net-tools-3.6.0/libcoap/src/
Ddebug.c377 size_t buf_len = 0; /* takes the number of bytes written to buf */ in coap_show_pdu() local
410 buf_len = print_content_format(content_format, buf, sizeof(buf)); in coap_show_pdu()
417 buf_len = snprintf((char *)buf, sizeof(buf), "%u/%c/%u", in coap_show_pdu()
429 buf_len = snprintf((char *)buf, sizeof(buf), "%u", in coap_show_pdu()
447 buf_len = print_readable(COAP_OPT_VALUE(option), in coap_show_pdu()
453 (int)buf_len, buf); in coap_show_pdu()