openssl/ssl/record/methods
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
..
build.info
dtls_meth.c Fix dtls_get_max_record_overhead() 2022-11-07 10:59:20 +00:00
ktls_meth.c Remove some unused OSSL_RECORD_METHOD functions 2022-10-27 10:52:52 +01:00
recmethod_local.h Fix dtls_get_max_record_overhead() 2022-11-07 10:59:20 +00:00
ssl3_cbc.c
ssl3_meth.c
tls1_meth.c Pipeline output/input buf arrays must live until the EVP_Cipher is called 2022-11-02 11:11:40 +01:00
tls13_meth.c Fix dtls_get_max_record_overhead() 2022-11-07 10:59:20 +00:00
tls_common.c Use the same encryption growth macro consistently 2022-11-07 17:12:01 +00:00
tls_multib.c
tlsany_meth.c