mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Fix printed output of some selftests
This commit is contained in:
parent
cdee2d9148
commit
d1004f02e6
@ -408,10 +408,7 @@ int mbedtls_hmac_drbg_update_seed_file( mbedtls_hmac_drbg_context *ctx, const ch
|
|||||||
/* Dummy checkup routine */
|
/* Dummy checkup routine */
|
||||||
int mbedtls_hmac_drbg_self_test( int verbose )
|
int mbedtls_hmac_drbg_self_test( int verbose )
|
||||||
{
|
{
|
||||||
|
(void) verbose;
|
||||||
if( verbose != 0 )
|
|
||||||
mbedtls_printf( "\n" );
|
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -1642,9 +1642,12 @@ int mbedtls_rsa_self_test( int verbose )
|
|||||||
return( 1 );
|
return( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( verbose != 0 )
|
||||||
|
mbedtls_printf( "passed\n" );
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA1_C)
|
#if defined(MBEDTLS_SHA1_C)
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
mbedtls_printf( "passed\n PKCS#1 data sign : " );
|
mbedtls_printf( "PKCS#1 data sign : " );
|
||||||
|
|
||||||
mbedtls_sha1( rsa_plaintext, PT_LEN, sha1sum );
|
mbedtls_sha1( rsa_plaintext, PT_LEN, sha1sum );
|
||||||
|
|
||||||
@ -1670,9 +1673,12 @@ int mbedtls_rsa_self_test( int verbose )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
mbedtls_printf( "passed\n\n" );
|
mbedtls_printf( "passed\n" );
|
||||||
#endif /* MBEDTLS_SHA1_C */
|
#endif /* MBEDTLS_SHA1_C */
|
||||||
|
|
||||||
|
if( verbose != 0 )
|
||||||
|
mbedtls_printf( "\n" );
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
mbedtls_rsa_free( &rsa );
|
mbedtls_rsa_free( &rsa );
|
||||||
#else /* MBEDTLS_PKCS1_V15 */
|
#else /* MBEDTLS_PKCS1_V15 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user