add sha512/224 and sha512/256 to tests and crypt_build_settings
This commit is contained in:
parent
06321b8602
commit
1924e6fd47
@ -130,9 +130,15 @@ const char *crypt_build_settings =
|
||||
#if defined(LTC_SHA384)
|
||||
" SHA-384\n"
|
||||
#endif
|
||||
#if defined(LTC_SHA512_256)
|
||||
" SHA-512/256\n"
|
||||
#endif
|
||||
#if defined(LTC_SHA256)
|
||||
" SHA-256\n"
|
||||
#endif
|
||||
#if defined(LTC_SHA512_224)
|
||||
" SHA-512/224\n"
|
||||
#endif
|
||||
#if defined(LTC_SHA224)
|
||||
" SHA-224\n"
|
||||
#endif
|
||||
|
@ -226,6 +226,12 @@ static void _unregister_all(void)
|
||||
#ifdef LTC_SHA512
|
||||
unregister_hash(&sha512_desc);
|
||||
#endif
|
||||
#ifdef LTC_SHA512_224
|
||||
unregister_hash(&sha512_224_desc);
|
||||
#endif
|
||||
#ifdef LTC_SHA512_256
|
||||
unregister_hash(&sha512_256_desc);
|
||||
#endif
|
||||
#ifdef LTC_RIPEMD128
|
||||
unregister_hash(&rmd128_desc);
|
||||
#endif
|
||||
@ -352,6 +358,12 @@ void reg_algs(void)
|
||||
#ifdef LTC_SHA512
|
||||
register_hash (&sha512_desc);
|
||||
#endif
|
||||
#ifdef LTC_SHA512_224
|
||||
register_hash (&sha512_224_desc);
|
||||
#endif
|
||||
#ifdef LTC_SHA512_256
|
||||
register_hash (&sha512_256_desc);
|
||||
#endif
|
||||
#ifdef LTC_RIPEMD128
|
||||
register_hash (&rmd128_desc);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user