summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp9
1 files changed, 5 insertions, 4 deletions
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