openssl/ssl/record
Matt Caswell ecacbc5e3c Use the same encryption growth macro consistently
We had two different macros for calculating the potential growth due to
encryption. The macro we use for allocating the underlying buffer should be
the same one that we use for reserving bytes for encryption growth.

Also if we are adding the MAC independently of the cipher algorithm then
the encryption growth will not include that MAC so we should remove it
from the amount of bytes that we reserve for that growth. Otherwise we
might exceed our buffer size and the WPACKET_reserve operation will
fail.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19622)
2022-11-07 17:12:01 +00:00
..
methods Use the same encryption growth macro consistently 2022-11-07 17:12:01 +00:00
build.info Remove some redundant code 2022-10-20 14:39:33 +01:00
rec_layer_d1.c Remove some redundant code 2022-10-20 14:39:33 +01:00
rec_layer_s3.c Make SSL_alloc_buffers() and SSL_free_buffers() work again 2022-10-27 10:52:52 +01:00
record_local.h Remove some redundant code 2022-10-20 14:39:33 +01:00
record.h Make SSL_alloc_buffers() and SSL_free_buffers() work again 2022-10-27 10:52:52 +01:00
recordmethod.h Remove some unused OSSL_RECORD_METHOD functions 2022-10-27 10:52:52 +01:00
ssl3_record.c Remove some redundant code 2022-10-20 14:39:33 +01:00
tls_pad.c Fix leakage when the cacheline is 32-bytes in CBC_MAC_ROTATE_IN_PLACE 2022-05-09 16:40:21 +02:00