mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Still test pbkdf2 while it's there
This commit is contained in:
parent
52a555cd7d
commit
388dac4037
1 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,7 @@
|
||||||
#include "polarssl/x509.h"
|
#include "polarssl/x509.h"
|
||||||
#include "polarssl/xtea.h"
|
#include "polarssl/xtea.h"
|
||||||
#include "polarssl/pkcs5.h"
|
#include "polarssl/pkcs5.h"
|
||||||
|
#include "polarssl/pbkdf2.h"
|
||||||
#include "polarssl/ecp.h"
|
#include "polarssl/ecp.h"
|
||||||
|
|
||||||
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C)
|
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C)
|
||||||
|
|
@ -171,10 +172,15 @@ int main( int argc, char *argv[] )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_PBKDF2_C)
|
||||||
|
if( ( ret = pbkdf2_self_test( v ) ) != 0 )
|
||||||
|
return( ret );
|
||||||
|
#else
|
||||||
#if defined(POLARSSL_PKCS5_C)
|
#if defined(POLARSSL_PKCS5_C)
|
||||||
if( ( ret = pkcs5_self_test( v ) ) != 0 )
|
if( ( ret = pkcs5_self_test( v ) ) != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_ECP_C)
|
#if defined(POLARSSL_ECP_C)
|
||||||
if( ( ret = ecp_self_test( v ) ) != 0 )
|
if( ( ret = ecp_self_test( v ) ) != 0 )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue