hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
sha3_256.hpp
Go to the documentation of this file.
1
6
#ifndef IROHA_SHARED_MODEL_SHA3_256_HPP
7
#define IROHA_SHARED_MODEL_SHA3_256_HPP
8
9
#include "
crypto/hash_types.hpp
"
10
#include "
cryptography/ed25519_sha3_impl/internal/sha3_hash.hpp
"
11
#include "
cryptography/hash.hpp
"
12
13
namespace
shared_model
{
14
namespace
crypto {
15
class
Sha3_256
{
16
public
:
17
enum
{
kHashLength
= 32 };
18
static
Hash
makeHash
(
const
Blob
&blob) {
19
return
Hash
(
iroha::sha3_256
(blob.
blob
()).to_string());
20
}
21
};
22
}
// namespace crypto
23
}
// namespace shared_model
24
25
#endif // IROHA_SHARED_MODEL_SHA3_256_HPP
shared_model::crypto::Hash
Definition:
hash.hpp:18
hash_types.hpp
shared_model::crypto::Sha3_256
Definition:
sha3_256.hpp:15
shared_model::crypto::Blob
Definition:
blob.hpp:27
sha3_hash.hpp
shared_model::crypto::Blob::blob
virtual const Bytes & blob() const
Definition:
blob.cpp:50
iroha::sha3_256
void sha3_256(uint8_t *output, const uint8_t *input, size_t in_size)
Definition:
sha3_hash.cpp:13
shared_model::crypto::Sha3_256::makeHash
static Hash makeHash(const Blob &blob)
Definition:
sha3_256.hpp:18
shared_model::crypto::Sha3_256::kHashLength
Definition:
sha3_256.hpp:17
hash.hpp
shared_model
Definition:
command_executor.hpp:12
shared_model
cryptography
hash_providers
sha3_256.hpp
Generated by
1.8.13