mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
sha3: remove unused counter
This commit is contained in:
parent
aefb6e5fcf
commit
53cbece3a6
@ -207,14 +207,11 @@ defsha3(512)
|
||||
|
||||
}
|
||||
|
||||
unsigned g_keccak256Counter = 0;
|
||||
|
||||
bool keccak256(bytesConstRef _input, bytesRef o_output)
|
||||
{
|
||||
// FIXME: What with unaligned memory?
|
||||
if (o_output.size() != 32)
|
||||
return false;
|
||||
++g_keccak256Counter;
|
||||
keccak::sha3_256(o_output.data(), 32, _input.data(), _input.size());
|
||||
// keccak::keccak(ret.data(), 32, (uint64_t const*)_input.data(), _input.size());
|
||||
return true;
|
||||
|
@ -54,6 +54,4 @@ 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); }
|
||||
|
||||
extern unsigned g_keccak256Counter;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user