diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-09-03 10:57:31 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-09-03 10:57:31 +0000 |
commit | 65ea2d1cb9f91b81127142551d0f4098583ede73 (patch) | |
tree | 19dad58c2b6f0728c0598cc5b120e9846d289b19 /sha.cpp | |
parent | bf7ce9baa84e06a5bf001e55db1111c1050e2cfc (diff) | |
download | cryptopp-65ea2d1cb9f91b81127142551d0f4098583ede73.tar.gz |
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
Diffstat (limited to 'sha.cpp')
-rw-r--r-- | sha.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |