Lines Matching refs:buf_len
606 || rec->buf_len < rec->data_offset in mbedtls_ssl_encrypt_buf()
607 || rec->buf_len - rec->data_offset < rec->data_len in mbedtls_ssl_encrypt_buf()
618 post_avail = rec->buf_len - ( rec->data_len + rec->data_offset ); in mbedtls_ssl_encrypt_buf()
697 post_avail = rec->buf_len - ( rec->data_len + rec->data_offset ); in mbedtls_ssl_encrypt_buf()
858 data, rec->buf_len - (data - rec->buf), /* dst */ in mbedtls_ssl_encrypt_buf()
1307 rec->buf_len < rec->data_offset || in mbedtls_ssl_decrypt_buf()
1308 rec->buf_len - rec->data_offset < rec->data_len ) in mbedtls_ssl_decrypt_buf()
1437 data, rec->buf_len - (data - rec->buf), &olen, /* dst */ in mbedtls_ssl_decrypt_buf()
2885 rec.buf_len = out_buf_len - ( ssl->out_iv - ssl->out_buf ); in mbedtls_ssl_write_record()
3395 unsigned char *obuf, size_t buf_len, size_t *olen ) in ssl_check_dtls_clihlo_cookie() argument
3469 if( buf_len < 28 ) in ssl_check_dtls_clihlo_cookie()
3481 &p, obuf + buf_len, cli_id, cli_id_len ) != 0 ) in ssl_check_dtls_clihlo_cookie()
3774 rec->buf_len = rec->data_offset + rec->data_len; in ssl_parse_record_header()
3878 rec->buf, rec->buf_len ); in ssl_prepare_record_content()
4652 if( rec->buf_len > ( MBEDTLS_SSL_DTLS_MAX_BUFFERING - in ssl_buffer_future_record()
4659 rec->buf_len, (size_t) MBEDTLS_SSL_DTLS_MAX_BUFFERING, in ssl_buffer_future_record()
4667 MBEDTLS_SSL_DEBUG_BUF( 3, "Buffered record", rec->buf, rec->buf_len ); in ssl_buffer_future_record()
4672 hs->buffering.future_record.len = rec->buf_len; in ssl_buffer_future_record()
4683 memcpy( hs->buffering.future_record.data, rec->buf, rec->buf_len ); in ssl_buffer_future_record()
4685 hs->buffering.total_bytes_buffered += rec->buf_len; in ssl_buffer_future_record()
4757 ssl->next_record_offset = rec.buf_len; in ssl_get_next_record()
4786 ssl->next_record_offset = rec.buf_len; in ssl_get_next_record()
4798 ret = mbedtls_ssl_fetch_input( ssl, rec.buf_len ); in ssl_get_next_record()