mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename dev::sha3 to dev::keccak256
This commit is contained in:
+3
-3
@@ -207,14 +207,14 @@ defsha3(512)
|
||||
|
||||
}
|
||||
|
||||
unsigned g_sha3Counter = 0;
|
||||
unsigned g_keccak256Counter = 0;
|
||||
|
||||
bool sha3(bytesConstRef _input, bytesRef o_output)
|
||||
bool keccak256(bytesConstRef _input, bytesRef o_output)
|
||||
{
|
||||
// FIXME: What with unaligned memory?
|
||||
if (o_output.size() != 32)
|
||||
return false;
|
||||
++g_sha3Counter;
|
||||
++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;
|
||||
|
||||
Reference in New Issue
Block a user