mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
ecacbc5e3c
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) |
||
---|---|---|
.. | ||
build.info | ||
dtls_meth.c | ||
ktls_meth.c | ||
recmethod_local.h | ||
ssl3_cbc.c | ||
ssl3_meth.c | ||
tls1_meth.c | ||
tls13_meth.c | ||
tls_common.c | ||
tls_multib.c | ||
tlsany_meth.c |