1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Formatting fix

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek
2022-10-17 08:11:11 -04:00
parent 084334c8f2
commit 46a987367c

View File

@@ -1665,15 +1665,15 @@ int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl,
#if defined(MBEDTLS_SSL_PROTO_TLS1_2) #if defined(MBEDTLS_SSL_PROTO_TLS1_2)
/* /*
* The next two sizes are the minimum and maximum values of * The next two sizes are the minimum and maximum values of
* data_len over all padlen values. * data_len over all padlen values.
* *
* They're independent of padlen, since we previously did * They're independent of padlen, since we previously did
* data_len -= padlen. * data_len -= padlen.
* *
* Note that max_len + maclen is never more than the buffer * Note that max_len + maclen is never more than the buffer
* length, as we previously did in_msglen -= maclen too. * length, as we previously did in_msglen -= maclen too.
*/ */
const size_t max_len = rec->data_len + padlen; const size_t max_len = rec->data_len + padlen;
const size_t min_len = ( max_len > 256 ) ? max_len - 256 : 0; const size_t min_len = ( max_len > 256 ) ? max_len - 256 : 0;