29 #include <ethash/keccak.hpp> 69 inline h256 sha3(std::string
const& _input) noexcept
90 return sha3(_input.ref());
110 template <
unsigned N>
116 template <
unsigned N>
123 inline std::string
sha3(std::string
const& _input,
bool _isNibbles)
vector_ref< _T const > ref(_T const &_t)
std::vector< unsigned char > toBytes() const
SecureFixedHash< 32 > sha3Secure(bytesConstRef _input) noexcept
bool sha3(bytesConstRef _input, bytesRef o_output) noexcept
h256 hash256(BytesMap const &_s)
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
vector_ref< byte > bytesRef
std::vector< byte > bytes
vector_ref< byte const > bytesConstRef
FixedHash< T > & writable()
bytes asBytes(std::string const &_b)
Converts a string to a byte array containing the string's (byte) data.
void sha3mac(bytesConstRef _secret, bytesConstRef _plain, bytesRef _output)
Calculate SHA3-256 MAC.
std::string asString(bytes const &_b)