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

Add hmac_drbg_selftest()

This commit is contained in:
Manuel Pégourié-Gonnard
2014-01-31 11:12:09 +01:00
parent 62273b88ab
commit 79afaa0551
4 changed files with 123 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include <string.h>
#include <stdio.h>
#include "polarssl/hmac_drbg.h"
#include "polarssl/ctr_drbg.h"
#include "polarssl/dhm.h"
#include "polarssl/gcm.h"
@ -140,7 +141,7 @@ int main( int argc, char *argv[] )
return( ret );
#endif
#if defined(POLARSSL_RSA_C) && defined(POLARSSL_BIGNUM_C)
#if defined(POLARSSL_RSA_C)
if( ( ret = rsa_self_test( v ) ) != 0 )
return( ret );
#endif
@ -165,6 +166,11 @@ int main( int argc, char *argv[] )
return( ret );
#endif
#if defined(POLARSSL_HMAC_DRBG_C)
if( ( ret = hmac_drbg_self_test( v ) ) != 0 )
return( ret );
#endif
#if defined(POLARSSL_PBKDF2_C)
if( ( ret = pbkdf2_self_test( v ) ) != 0 )
return( ret );