hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
sha3_hash.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_HASH_H
7 #define IROHA_HASH_H
8 
9 #include <string>
10 #include <vector>
11 
12 #include "crypto/hash_types.hpp"
13 
14 namespace iroha {
15 
16  void sha3_256(uint8_t *output, const uint8_t *input, size_t in_size);
17  void sha3_512(uint8_t *output, const uint8_t *input, size_t in_size);
18 
19  hash256_t sha3_256(const uint8_t *input, size_t in_size);
20  hash256_t sha3_256(const std::string &msg);
21  hash256_t sha3_256(const std::vector<uint8_t> &msg);
22  hash512_t sha3_512(const uint8_t *input, size_t in_size);
23  hash512_t sha3_512(const std::string &msg);
24  hash512_t sha3_512(const std::vector<uint8_t> &msg);
25 } // namespace iroha
26 
27 #endif // IROHA_HASH_H
std::string input(const std::string &string)
Definition: logger.cpp:25
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
void sha3_512(uint8_t *output, const uint8_t *input, size_t in_size)
Definition: sha3_hash.cpp:17
std::string output(const std::string &string)
Definition: logger.cpp:21
Definition: block_query.hpp:16
hash_t< 256/8 > hash256_t
Definition: hash_types.hpp:18
void sha3_256(uint8_t *output, const uint8_t *input, size_t in_size)
Definition: sha3_hash.cpp:13
hash_t< 512/8 > hash512_t
Definition: hash_types.hpp:20