summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/sha.cpp b/sha.cpp
index 4eaae56..a570fb7 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -4,9 +4,6 @@
// Both are in the public domain.
#include "pch.h"
-
-#ifndef CRYPTOPP_IMPORTS
-
#include "sha.h"
#include "misc.h"
@@ -17,6 +14,8 @@ 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;
@@ -79,6 +78,8 @@ void SHA::Transform(word32 *state, const word32 *data)
memset(W, 0, sizeof(W));
}
+#endif // #ifndef CRYPTOPP_IMPORTS
+
// end of Steve Reid's code
// *************************************************************
@@ -278,5 +279,3 @@ void SHA384::InitState(HashWordType *state)
#endif
NAMESPACE_END
-
-#endif