From 65ea2d1cb9f91b81127142551d0f4098583ede73 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 3 Sep 2004 10:57:31 +0000 Subject: changes related to the next FIPS validation git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@193 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- sha.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sha.cpp') diff --git a/sha.cpp b/sha.cpp index 7ce449a..ff3a2cb 100644 --- a/sha.cpp +++ b/sha.cpp @@ -4,6 +4,9 @@ // Both are in the public domain. #include "pch.h" + +#ifndef CRYPTOPP_IMPORTS + #include "sha.h" #include "misc.h" @@ -14,8 +17,6 @@ NAMESPACE_BEGIN(CryptoPP) #define blk0(i) (W[i] = data[i]) #define blk1(i) (W[i&15] = rotlFixed(W[(i+13)&15]^W[(i+8)&15]^W[(i+2)&15]^W[i&15],1)) -#ifndef CRYPTOPP_IMPORTS - void SHA::InitState(HashWordType *state) { state[0] = 0x67452301L; @@ -78,8 +79,6 @@ void SHA::Transform(word32 *state, const word32 *data) memset(W, 0, sizeof(W)); } -#endif // #ifndef CRYPTOPP_IMPORTS - // end of Steve Reid's code // ************************************************************* @@ -291,3 +290,5 @@ void SHA384::InitState(HashWordType *state) #endif NAMESPACE_END + +#endif // #ifndef CRYPTOPP_IMPORTS -- cgit v1.2.1