aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/SHA3.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdevcore/SHA3.h')
-rw-r--r--libdevcore/SHA3.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/libdevcore/SHA3.h b/libdevcore/SHA3.h
index e3ff1335..ea0c761d 100644
--- a/libdevcore/SHA3.h
+++ b/libdevcore/SHA3.h
@@ -53,12 +53,5 @@ inline std::string keccak256(std::string const& _input, bool _isNibbles) { retur
/// Calculate SHA3-256 MAC
inline void keccak256mac(bytesConstRef _secret, bytesConstRef _plain, bytesRef _output) { keccak256(_secret.toBytes() + _plain.toBytes()).ref().populate(_output); }
-h256 swarmHash(bytes const& _data)
-{
- bytes size(8);
- for (size_t i = 0; i < 8; ++i)
- size[i] = (_data.size() >> (8 * i)) & 0xff;
-
- return keccak256(size + _data);
-}
+h256 swarmHash(bytes const& _data);
}