Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
vector_ref< _T const > ref(_T const &_t)
SecureFixedHash< 32 > sha3Secure(bytesConstRef _input)
bytesConstRef ref() const
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
vector_ref< byte > bytesRef
std::vector< byte > bytes
std::vector< unsigned char > toBytes() const
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.
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
void sha3mac(bytesConstRef _secret, bytesConstRef _plain, bytesRef _output)
Calculate SHA3-256 MAC.
std::string asString(bytes const &_b)
Converts byte array to a string containing the same (binary) data.