mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Avoid debug message that might leak length
The length to the debug message could conceivably leak through the time it takes to print it, and that length would in turn reveal whether padding was correct or not.
This commit is contained in:
parent
7b42030b5d
commit
6a25cfae2a
1 changed files with 2 additions and 0 deletions
|
|
@ -1972,8 +1972,10 @@ static int ssl_decrypt_buf( mbedtls_ssl_context *ssl )
|
|||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_DEBUG_ALL)
|
||||
MBEDTLS_SSL_DEBUG_BUF( 4, "raw buffer after decryption",
|
||||
ssl->in_msg, ssl->in_msglen );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Authenticate if not done yet.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue