1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Add timing_self_test() with consistency tests

This commit is contained in:
Manuel Pégourié-Gonnard
2014-03-27 20:07:08 +01:00
parent 487588d0bf
commit 470fc935b5
3 changed files with 140 additions and 4 deletions

View File

@ -51,6 +51,7 @@
#include "polarssl/pkcs5.h"
#include "polarssl/pbkdf2.h"
#include "polarssl/ecp.h"
#include "polarssl/timing.h"
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C)
#include "polarssl/memory.h"
@ -192,6 +193,11 @@ int main( int argc, char *argv[] )
return( ret );
#endif
#if defined(POLARSSL_TIMING_C)
if( ( ret = timing_self_test( v ) ) != 0 )
return( ret );
#endif
#else
printf( " POLARSSL_SELF_TEST not defined.\n" );
#endif