Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Functions
SHA3.h File Reference
#include <string>
#include "FixedHash.h"
#include "vector_ref.h"
Include dependency graph for SHA3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 dev
 Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by RenĂ© Nyffenegger.
 

Functions

bool dev::sha3 (bytesConstRef _input, bytesRef o_output)
 Calculate SHA3-256 hash of the given input and load it into the given output. More...
 
h256 dev::sha3 (bytesConstRef _input)
 Calculate SHA3-256 hash of the given input, returning as a 256-bit hash. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytesConstRef _input)
 
h256 dev::sha3 (bytes const &_input)
 Calculate SHA3-256 hash of the given input, returning as a 256-bit hash. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytes const &_input)
 
h256 dev::sha3 (std::string const &_input)
 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)
 
template<unsigned N>
h256 dev::sha3 (FixedHash< N > const &_input)
 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)
 
SecureFixedHash< 32 > dev::sha3 (bytesSec const &_input)
 Fully secure variants are equivalent for sha3 and sha3Secure. More...
 
SecureFixedHash< 32 > dev::sha3Secure (bytesSec const &_input)
 
template<unsigned N>
SecureFixedHash< 32 > dev::sha3 (SecureFixedHash< N > const &_input)
 
template<unsigned N>
SecureFixedHash< 32 > dev::sha3Secure (SecureFixedHash< N > const &_input)
 
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.