Home
last modified time | relevance | path

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

/mbedtls-development/library/
A Dplatform.c283 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_read() argument
291 if( ( n = fread( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_read()
294 mbedtls_platform_zeroize( buf, buf_len ); in mbedtls_platform_std_nv_seed_read()
302 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_write() argument
310 if( ( n = fwrite( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_write()
329 ((void) buf_len); in platform_nv_seed_read_uninit()
343 ((void) buf_len); in platform_nv_seed_write_uninit()
350 int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len ) =
352 int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len ) =
356 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ), in mbedtls_platform_set_nv_seed() argument
[all …]
A Dssl_tls13_generic.c77 size_t *buf_len ) in mbedtls_ssl_tls13_start_handshake_msg() argument
87 *buf_len = MBEDTLS_SSL_OUT_CONTENT_LEN - 4; in mbedtls_ssl_tls13_start_handshake_msg()
96 size_t buf_len, in mbedtls_ssl_tls13_finish_handshake_msg() argument
101 ((void) buf_len); in mbedtls_ssl_tls13_finish_handshake_msg()
461 size_t buf_len; in mbedtls_ssl_tls13_process_certificate_verify() local
467 MBEDTLS_SSL_HS_CERTIFICATE_VERIFY, &buf, &buf_len ) ); in mbedtls_ssl_tls13_process_certificate_verify()
498 buf + buf_len, verify_buffer, verify_buffer_len ) ); in mbedtls_ssl_tls13_process_certificate_verify()
501 MBEDTLS_SSL_HS_CERTIFICATE_VERIFY, buf, buf_len ); in mbedtls_ssl_tls13_process_certificate_verify()
824 size_t buf_len; in mbedtls_ssl_tls13_process_certificate() local
828 &buf, &buf_len ) ); in mbedtls_ssl_tls13_process_certificate()
[all …]
A Dssl_tls13_client.c505 size_t buf_len ) in ssl_tls13_read_public_ecdhe_share() argument
510 buf, buf_len ); in ssl_tls13_read_public_ecdhe_share()
857 size_t buf_len, msg_len; in ssl_tls13_write_client_hello() local
865 &buf, &buf_len ) ); in ssl_tls13_write_client_hello()
938 size_t *buf_len ) in ssl_tls13_server_hello_coordinate() argument
955 *buf_len = ssl->in_hslen - 4; in ssl_tls13_server_hello_coordinate()
957 ret = ssl_server_hello_is_hrr( ssl, *buf, *buf + *buf_len ); in ssl_tls13_server_hello_coordinate()
1362 size_t buf_len; in ssl_tls1_3_process_server_hello() local
1431 size_t buf_len; in ssl_tls13_process_encrypted_extensions() local
1437 &buf, &buf_len ) ); in ssl_tls13_process_encrypted_extensions()
[all …]
A Decdh_misc.h42 unsigned char *buf, size_t buf_len,
51 size_t buf_len );
A Dentropy.c527 static int mbedtls_entropy_source_self_test_gather( unsigned char *buf, size_t buf_len ) in mbedtls_entropy_source_self_test_gather() argument
532 size_t attempts = buf_len; in mbedtls_entropy_source_self_test_gather()
534 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
537 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
544 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
554 size_t buf_len ) in mbedtls_entropy_source_self_test_check_bits() argument
560 for( i = 0; i < buf_len; i++ ) in mbedtls_entropy_source_self_test_check_bits()
A Decdh.c811 size_t buf_len ) in ecdh_tls13_read_public_internal() argument
817 if( buf_len < 3 ) in ecdh_tls13_read_public_internal()
823 if( data_len < 1 || data_len != ( buf_len - 2 ) ) in ecdh_tls13_read_public_internal()
840 size_t buf_len ) in mbedtls_ecdh_tls13_read_public() argument
846 return( ecdh_tls13_read_public_internal( ctx, buf, buf_len ) ); in mbedtls_ecdh_tls13_read_public()
856 buf, buf_len ) ); in mbedtls_ecdh_tls13_read_public()
A Dssl_msg.c557 || rec->buf_len < rec->data_offset in mbedtls_ssl_encrypt_buf()
558 || rec->buf_len - rec->data_offset < rec->data_len in mbedtls_ssl_encrypt_buf()
1222 rec->buf_len < rec->data_offset || in mbedtls_ssl_decrypt_buf()
1223 rec->buf_len - rec->data_offset < rec->data_len ) in mbedtls_ssl_decrypt_buf()
3164 if( buf_len < 28 ) in ssl_check_dtls_clihlo_cookie()
3468 rec->buf_len = rec->data_offset + rec->data_len; in ssl_parse_record_header()
3572 rec->buf, rec->buf_len ); in ssl_prepare_record_content()
4353 hs->buffering.future_record.len = rec->buf_len; in ssl_buffer_future_record()
4366 hs->buffering.total_bytes_buffered += rec->buf_len; in ssl_buffer_future_record()
4438 ssl->next_record_offset = rec.buf_len; in ssl_get_next_record()
[all …]
A Dpem.c435 unsigned char *buf, size_t buf_len, size_t *olen ) in mbedtls_pem_write_buffer() argument
444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
482 memset( buf + *olen, 0, buf_len - *olen ); in mbedtls_pem_write_buffer()
A Dssl_tls.c4706 if( used <= buf_len ) in ssl_session_save_tls12()
4725 if( used <= buf_len ) in ssl_session_save_tls12()
4755 if( used <= buf_len ) in ssl_session_save_tls12()
4798 if( used <= buf_len ) in ssl_session_save_tls12()
4821 if( used <= buf_len ) in ssl_session_save_tls12()
4828 if( used <= buf_len ) in ssl_session_save_tls12()
4865 if( used <= buf_len ) in ssl_session_save()
4876 size_t remaining_len = used <= buf_len ? buf_len - used : 0; in ssl_session_save()
4887 if( used > buf_len ) in ssl_session_save()
5759 if( used <= buf_len ) in mbedtls_ssl_context_save()
[all …]
A Dctr_drbg.c138 size_t buf_len, use_len; in block_cipher_df() local
161 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
179 use_len = buf_len; in block_cipher_df()
A Dssl_misc.h980 size_t buf_len; /* Buffer length */ member
1657 size_t *buf_len );
1681 size_t buf_len,
A Dpk_wrap.c997 size_t buf_len ) in pk_ecdsa_sig_asn1_from_psa() argument
1002 unsigned char *p = sig + buf_len; in pk_ecdsa_sig_asn1_from_psa()
A Decp.c863 const unsigned char **buf, size_t buf_len ) in mbedtls_ecp_tls_read_point() argument
875 if( buf_len < 2 ) in mbedtls_ecp_tls_read_point()
879 if( data_len < 1 || data_len > buf_len - 1 ) in mbedtls_ecp_tls_read_point()
/mbedtls-development/include/mbedtls/
A Dplatform.h324 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
325 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
329 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
330 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
342 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
343 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h143 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2700 size_t buf_len,
4364 size_t buf_len,
/mbedtls-development/tests/suites/
A Dtest_suite_entropy.function71 int buffer_nv_seed_read( unsigned char *buf, size_t buf_len )
73 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
80 int buffer_nv_seed_write( unsigned char *buf, size_t buf_len )
82 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
92 static int write_nv_seed( unsigned char *buf, size_t buf_len )
96 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
111 int read_nv_seed( unsigned char *buf, size_t buf_len )
115 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
442 int (*original_mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len ) =
444 int (*original_mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len ) =
A Dtest_suite_asn1write.function251 void mbedtls_asn1_write_len( int len, data_t * asn1, int buf_len,
262 p = buf + GUARD_LEN + buf_len;
272 TEST_ASSERT( buf[GUARD_LEN + buf_len + i] == GUARD_VAL );
277 TEST_ASSERT( p + asn1->len == buf + GUARD_LEN + buf_len );
282 ret = mbedtls_asn1_get_len( &p, buf + GUARD_LEN + buf_len, &read_len );
296 TEST_ASSERT( p == buf + GUARD_LEN + buf_len );
A Dtest_suite_ssl.function342 \p buf_len.
361 return ( message_length > buf_len ) ? buf_len : message_length;
703 drop_len = msg_len - buf_len;
706 msg_len = buf_len;
1068 TEST_ASSERT( ret == buf_len ||
3227 rec.buf_len = buflen;
3361 rec.buf_len = buflen;
3545 rec.buf_len = buflen;
3964 size_t buf_len;
4003 ASSERT_ALLOC( buf, buf_len );
[all …]
/mbedtls-development/programs/ssl/
A Dssl_client2.c2743 size_t buf_len; in main() local
2747 ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &buf_len ); in main()
2756 if( ( context_buf = mbedtls_calloc( 1, buf_len ) ) == NULL ) in main()
2763 context_buf_len = buf_len; in main()
2766 buf_len, &buf_len ) ) != 0 ) in main()
2785 mbedtls_base64_encode( NULL, 0, &b64_len, context_buf, buf_len ); in main()
2795 context_buf, buf_len ) ) != 0 ) in main()
2867 buf_len ) ) != 0 ) in main()
A Dssl_server2.c3746 size_t buf_len; in main() local
3750 ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &buf_len ); in main()
3759 if( ( context_buf = mbedtls_calloc( 1, buf_len ) ) == NULL ) in main()
3766 context_buf_len = buf_len; in main()
3769 buf_len, &buf_len ) ) != 0 ) in main()
3788 mbedtls_base64_encode( NULL, 0, &b64_len, context_buf, buf_len ); in main()
3798 context_buf, buf_len ) ) != 0 ) in main()
3891 buf_len ) ) != 0 ) in main()
/mbedtls-development/docs/architecture/
A Dtls13-experimental.md390 size_t *buf_len );
400 buf, buf_len );
405 buf_len );

Completed in 73 milliseconds