You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The public function mbedtls_ssl_get_record_expansion() is supposed to return the maximum difference between the length of a protected record and the length of the plaintext it encapsulates, with respect to the currently enabled outgoing record protection.
PR #1752 introduced ChaChaPoly ciphersuites, the cipher mode for which is MBEDTLS_MODE_CHACHAPOLY, but this mode is not yet considered in mbedtls_ssl_get_record_expansion().
Impact
Internal
Currently, there is no internal impact on the library as Mbed TLS does not use mbedtls_ssl_get_record_expansion(). However, PR #1879 starts to make use of mbedtls_ssl_get_record_expansion() to deduce the maximum plaintext length from the maximum MTU, and miscalculation will lead to Mbed TLS not obeying the MTU.
Users
Users relying on mbedtls_ssl_get_record_expansion() in any way will observe a failure with error MBEDTLS_ERR_SSL_INTERNAL_ERROR when enabling to ChaChaPoly ciphersuites (default).
The text was updated successfully, but these errors were encountered:
hanno-becker
changed the title
mbedtls_ssl_get_record_expansion() does not consider ChaChaPoly suites
mbedtls_ssl_get_record_expansion() does not consider ChaChaPoly suites
Aug 3, 2018
Description
Bug
OS
All
Mbed TLS build:
Version: 2.12
Configuration: ChaChaPoly ciphersuites enabled (e.g., default configuration)
Description
The public function
mbedtls_ssl_get_record_expansion()
is supposed to return the maximum difference between the length of a protected record and the length of the plaintext it encapsulates, with respect to the currently enabled outgoing record protection.PR #1752 introduced ChaChaPoly ciphersuites, the cipher mode for which is
MBEDTLS_MODE_CHACHAPOLY
, but this mode is not yet considered inmbedtls_ssl_get_record_expansion()
.Impact
Internal
Currently, there is no internal impact on the library as Mbed TLS does not use
mbedtls_ssl_get_record_expansion()
. However, PR #1879 starts to make use ofmbedtls_ssl_get_record_expansion()
to deduce the maximum plaintext length from the maximum MTU, and miscalculation will lead to Mbed TLS not obeying the MTU.Users
Users relying on
mbedtls_ssl_get_record_expansion()
in any way will observe a failure with errorMBEDTLS_ERR_SSL_INTERNAL_ERROR
when enabling to ChaChaPoly ciphersuites (default).The text was updated successfully, but these errors were encountered: