Ethereum  PoC-8
The C++ Implementation of Ethereum
SHA3.h File Reference
#include "FixedHash.h"
#include "vector_ref.h"
#include <ethash/keccak.hpp>
#include <string>

Go to the source code of this file.

Namespaces

 dev
 

Functions

bool dev::sha3 (bytesConstRef _input, bytesRef o_output) noexcept
 
h256 dev::sha3 (bytesConstRef _input) noexcept
 Calculate SHA3-256 hash of the given input, returning as a 256-bit hash. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytesConstRef _input) noexcept
 
h256 dev::sha3 (bytes const &_input) noexcept
 Calculate SHA3-256 hash of the given input, returning as a 256-bit hash. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytes const &_input) noexcept
 
h256 dev::sha3 (std::string const &_input) noexcept
 Calculate SHA3-256 hash of the given input (presented as a binary-filled string), returning as a 256-bit hash. More...
 
SecureFixedHash< 32 > dev::sha3Secure (std::string const &_input) noexcept
 
h256 dev::sha3 (h256 const &_input) noexcept
 Keccak hash variant optimized for hashing 256-bit hashes. More...
 
template<unsigned N>
h256 dev::sha3 (FixedHash< N > const &_input) noexcept
 Calculate SHA3-256 hash of the given input (presented as a FixedHash), returns a 256-bit hash. More...
 
template<unsigned N>
SecureFixedHash< 32 > dev::sha3Secure (FixedHash< N > const &_input) noexcept
 
SecureFixedHash< 32 > dev::sha3 (bytesSec const &_input) noexcept
 Fully secure variants are equivalent for sha3 and sha3Secure. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytesSec const &_input) noexcept
 
template<unsigned N>
SecureFixedHash< 32 > dev::sha3 (SecureFixedHash< N > const &_input) noexcept
 
template<unsigned N>
SecureFixedHash< 32 > dev::sha3Secure (SecureFixedHash< N > const &_input) noexcept
 
std::string dev::sha3 (std::string const &_input, bool _isNibbles)
 Calculate SHA3-256 hash of the given input, possibly interpreting it as nibbles, and return the hash as a string filled with binary data. More...
 
void dev::sha3mac (bytesConstRef _secret, bytesConstRef _plain, bytesRef _output)
 Calculate SHA3-256 MAC. More...
 

Detailed Description

Author
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014

The FixedHash fixed-size "hash" container type.

Definition in file SHA3.h.