add sha512/224 and sha512/256 to tests and crypt_build_settings

This commit is contained in:
Steffen Jaeckel 2014-08-27 14:38:56 +02:00
parent 06321b8602
commit 1924e6fd47
2 changed files with 18 additions and 0 deletions

View File

@ -130,9 +130,15 @@ const char *crypt_build_settings =
#if defined(LTC_SHA384) #if defined(LTC_SHA384)
" SHA-384\n" " SHA-384\n"
#endif #endif
#if defined(LTC_SHA512_256)
" SHA-512/256\n"
#endif
#if defined(LTC_SHA256) #if defined(LTC_SHA256)
" SHA-256\n" " SHA-256\n"
#endif #endif
#if defined(LTC_SHA512_224)
" SHA-512/224\n"
#endif
#if defined(LTC_SHA224) #if defined(LTC_SHA224)
" SHA-224\n" " SHA-224\n"
#endif #endif

View File

@ -226,6 +226,12 @@ static void _unregister_all(void)
#ifdef LTC_SHA512 #ifdef LTC_SHA512
unregister_hash(&sha512_desc); unregister_hash(&sha512_desc);
#endif #endif
#ifdef LTC_SHA512_224
unregister_hash(&sha512_224_desc);
#endif
#ifdef LTC_SHA512_256
unregister_hash(&sha512_256_desc);
#endif
#ifdef LTC_RIPEMD128 #ifdef LTC_RIPEMD128
unregister_hash(&rmd128_desc); unregister_hash(&rmd128_desc);
#endif #endif
@ -352,6 +358,12 @@ void reg_algs(void)
#ifdef LTC_SHA512 #ifdef LTC_SHA512
register_hash (&sha512_desc); register_hash (&sha512_desc);
#endif #endif
#ifdef LTC_SHA512_224
register_hash (&sha512_224_desc);
#endif
#ifdef LTC_SHA512_256
register_hash (&sha512_256_desc);
#endif
#ifdef LTC_RIPEMD128 #ifdef LTC_RIPEMD128
register_hash (&rmd128_desc); register_hash (&rmd128_desc);
#endif #endif