aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha2_32/sha2_32.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-06-08 13:10:24 -0400
committerJack Lloyd <[email protected]>2017-06-08 13:10:24 -0400
commit5b2fe4a6d4dfdb28af364eec86a407327e64d1d7 (patch)
treedd0fc1e123a8c1c33e9f063bc4a32d1b7f675915 /src/lib/hash/sha2_32/sha2_32.cpp
parent64247e5df65f8621ac01d53984c09d094ec7668d (diff)
Maintainer mode fixes: old style casts, missing override, unused functions
Diffstat (limited to 'src/lib/hash/sha2_32/sha2_32.cpp')
-rw-r--r--src/lib/hash/sha2_32/sha2_32.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/hash/sha2_32/sha2_32.cpp b/src/lib/hash/sha2_32/sha2_32.cpp
index 58977b617..281e6ed2b 100644
--- a/src/lib/hash/sha2_32/sha2_32.cpp
+++ b/src/lib/hash/sha2_32/sha2_32.cpp
@@ -21,31 +21,6 @@ std::unique_ptr<HashFunction> SHA_256::copy_state() const
return std::unique_ptr<HashFunction>(new SHA_256(*this));
}
-namespace {
-
-namespace SHA2_32 {
-
-/*
-* SHA-256 Rho Function
-*/
-inline uint32_t rho(uint32_t X, uint32_t rot1, uint32_t rot2, uint32_t rot3)
- {
- return (rotate_right(X, rot1) ^ rotate_right(X, rot2) ^
- rotate_right(X, rot3));
- }
-
-/*
-* SHA-256 Sigma Function
-*/
-inline uint32_t sigma(uint32_t X, uint32_t rot1, uint32_t rot2, uint32_t shift)
- {
- return (rotate_right(X, rot1) ^ rotate_right(X, rot2) ^ (X >> shift));
- }
-
-}
-
-}
-
/*
* SHA-256 F1 Function
*