sha2: remove including of c-files

This commit is contained in:
Steffen Jaeckel 2014-03-04 20:38:42 +01:00
parent cbd59421bd
commit f3cdac05ec
4 changed files with 11 additions and 12 deletions

View File

@ -13,6 +13,10 @@
LTC_SHA-224 new NIST standard based off of LTC_SHA-256 truncated to 224 bits (Tom St Denis)
*/
#include "tomcrypt.h"
#if defined(LTC_SHA224) && defined(LTC_SHA256)
const struct ltc_hash_descriptor sha224_desc =
{
"sha224",
@ -119,6 +123,8 @@ int sha224_test(void)
#endif
}
#endif /* defined(LTC_SHA224) && defined(LTC_SHA256) */
/* $Source$ */
/* $Revision$ */

View File

@ -327,10 +327,6 @@ int sha256_test(void)
#endif
}
#ifdef LTC_SHA224
#include "sha224.c"
#endif
#endif

View File

@ -13,6 +13,10 @@
LTC_SHA384 hash included in sha512.c, Tom St Denis
*/
#include "tomcrypt.h"
#if defined(LTC_SHA384) && defined(LTC_SHA512)
const struct ltc_hash_descriptor sha384_desc =
{
"sha384",
@ -125,10 +129,7 @@ int sha384_test(void)
#endif
}
#endif /* defined(LTC_SHA384) && defined(LTC_SHA512) */
/* $Source$ */
/* $Revision$ */

View File

@ -305,10 +305,6 @@ int sha512_test(void)
#endif
}
#ifdef LTC_SHA384
#include "sha384.c"
#endif
#endif