From 1744d7290275cd516b41a90bc7630fe75475184e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 17 Jan 2014 14:44:38 +0100 Subject: [PATCH] Add RIPEMD-160 to selftest --- programs/test/selftest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/test/selftest.c b/programs/test/selftest.c index fb9a7cc72..fc990fe93 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -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 );