mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 12:45:39 +01:00
pkcs5_self_test depends on SHA1
This commit is contained in:
parent
f3e5c22f4d
commit
2a8afa98e2
@ -295,6 +295,16 @@ int pkcs5_pbkdf2_hmac( md_context_t *ctx, const unsigned char *password,
|
||||
|
||||
#if defined(POLARSSL_SELF_TEST)
|
||||
|
||||
#if !defined(POLARSSL_SHA1_C)
|
||||
int pkcs5_self_test( int verbose )
|
||||
{
|
||||
if( verbose != 0 )
|
||||
polarssl_printf( " PBKDF2 (SHA1): skipped\n\n" );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_TESTS 6
|
||||
@ -398,6 +408,7 @@ int pkcs5_self_test( int verbose )
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* POLARSSL_SHA1_C */
|
||||
|
||||
#endif /* POLARSSL_SELF_TEST */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user