summaryrefslogtreecommitdiff
path: root/3way.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-10-10 18:20:49 -0400
committerJeffrey Walton <noloader@gmail.com>2016-10-10 18:20:49 -0400
commit2d8992a54790da53ac2a7c8c8e0d82bc272b7d71 (patch)
treebb4c81cf3bad8453a1fd7ced742a1aa24cfb8c16 /3way.cpp
parent145a83e4cd12871f573920acee8184346f7dcd74 (diff)
downloadcryptopp-git-2d8992a54790da53ac2a7c8c8e0d82bc272b7d71.tar.gz
Add statics to anonymous namespace
Diffstat (limited to '3way.cpp')
-rw-r--r--3way.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/3way.cpp b/3way.cpp
index f5a3d519..86ba0efb 100644
--- a/3way.cpp
+++ b/3way.cpp
@@ -15,11 +15,14 @@ void ThreeWay_TestInstantiations()
}
#endif
-static const word32 START_E = 0x0b0b; // round constant of first encryption round
-static const word32 START_D = 0xb1b1; // round constant of first decryption round
+namespace
+{
+ const word32 START_E = 0x0b0b; // round constant of first encryption round
+ const word32 START_D = 0xb1b1; // round constant of first decryption round
#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
-static const word32 RC_MODULUS = 0x11011;
+ const word32 RC_MODULUS = 0x11011;
#endif
+}
static inline word32 reverseBits(word32 a)
{