mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Merge pull request #5622 from paul-elliott-arm/timing_delay_accessor
Accessor for mbedtls_timing_delay_context final delay
This commit is contained in:
@ -3210,3 +3210,6 @@ conf_curve:
|
||||
|
||||
Test configuration of groups for DHE through mbedtls_ssl_conf_groups()
|
||||
conf_group:
|
||||
|
||||
Test accessor into timing_delay_context
|
||||
timing_final_delay_accessor
|
||||
|
@ -5441,3 +5441,14 @@ void conf_group()
|
||||
mbedtls_ssl_config_free( &conf );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_TIMING_C:MBEDTLS_HAVE_TIME */
|
||||
void timing_final_delay_accessor( )
|
||||
{
|
||||
mbedtls_timing_delay_context delay_context;
|
||||
|
||||
mbedtls_timing_set_delay( &delay_context, 50, 100 );
|
||||
|
||||
TEST_ASSERT( mbedtls_timing_get_final_delay( &delay_context ) == 100 );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
Reference in New Issue
Block a user