mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Merge pull request #4866 from gabor-mezei-arm/3649_move_constant_time_functions_into_separate_module
Move constant-time functions into a separate module
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include "mbedtls/debug.h"
|
||||
#include "mbedtls/oid.h"
|
||||
#include "mbedtls/platform.h"
|
||||
#include "mbedtls/constant_time.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "ssl_misc.h"
|
||||
@ -928,9 +929,9 @@ static int ssl_tls13_parse_finished_message( mbedtls_ssl_context *ssl,
|
||||
expected_verify_data_len );
|
||||
|
||||
/* Semantic validation */
|
||||
if( mbedtls_ssl_safer_memcmp( buf,
|
||||
expected_verify_data,
|
||||
expected_verify_data_len ) != 0 )
|
||||
if( mbedtls_ct_memcmp( buf,
|
||||
expected_verify_data,
|
||||
expected_verify_data_len ) != 0 )
|
||||
{
|
||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad finished message" ) );
|
||||
|
||||
|
Reference in New Issue
Block a user