1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Added a selftest about SPA resistance

This commit is contained in:
Manuel Pégourié-Gonnard
2012-11-13 20:57:00 +01:00
committed by Paul Bakker
parent 9674fd0d5e
commit b4a310b472
4 changed files with 98 additions and 1 deletions

View File

@ -50,6 +50,7 @@
#include "polarssl/x509.h"
#include "polarssl/xtea.h"
#include "polarssl/pbkdf2.h"
#include "polarssl/ecp.h"
int main( int argc, char *argv[] )
{
@ -155,6 +156,11 @@ int main( int argc, char *argv[] )
return( ret );
#endif
#if defined(POLARSSL_ECP_C)
if( ( ret = ecp_self_test( v ) ) != 0 )
return( ret );
#endif
#else
printf( " POLARSSL_SELF_TEST not defined.\n" );
#endif