Add RIPEMD-160 to selftest

This commit is contained in:
Manuel Pégourié-Gonnard 2014-01-17 14:44:38 +01:00
parent 01b0b38421
commit 1744d72902

View File

@ -34,6 +34,7 @@
#include "polarssl/md2.h"
#include "polarssl/md4.h"
#include "polarssl/md5.h"
#include "polarssl/rmd160.h"
#include "polarssl/sha1.h"
#include "polarssl/sha256.h"
#include "polarssl/sha512.h"
@ -89,6 +90,11 @@ int main( int argc, char *argv[] )
return( ret );
#endif
#if defined(POLARSSL_RMD160_C)
if( ( ret = rmd160_self_test( v ) ) != 0 )
return( ret );
#endif
#if defined(POLARSSL_SHA1_C)
if( ( ret = sha1_self_test( v ) ) != 0 )
return( ret );