28 blake2b(out.data(), out.
size(),
nullptr, 0, buffer.data(), buffer.size());
38 blake2b(out.data(), out.
size(),
nullptr, 0, buffer.data(), buffer.size());
48 blake2b(out.data(), 32,
nullptr, 0, buffer.data(), buffer.
size());
54 blake2b(out.data(), 64,
nullptr, 0, buffer.data(), buffer.
size());
71 blake2s(out.data(), 32,
nullptr, 0, buffer.data(), buffer.
size());
Hash128 twox_128(gsl::span< const uint8_t > buffer) const override
twox_128 calculates 16-byte twox hash
Hash256 twox_256(gsl::span< const uint8_t > buffer) const override
twox_256 calculates 32-byte twox hash
Hash64 twox_64(gsl::span< const uint8_t > buffer) const override
twox_64 calculates 8-byte twox hash
int blake2s(void *out, size_t outlen, const void *key, size_t keylen, const void *in, size_t inlen)
All in one blake2s hashing function.
sha3_return_t sha3_HashBuffer(unsigned bitSize, enum SHA3_FLAGS flags, const void *in, unsigned inBytes, void *out, unsigned outBytes)
int blake2b(void *out, size_t outlen, const void *key, size_t keylen, const void *in, size_t inlen)
void make_twox64(const uint8_t *in, uint32_t len, uint8_t *out)
Hash256 blake2s_256(gsl::span< const uint8_t > buffer) const override
blake2s_256 function calculates 32-byte blake2s hash
Hash256 sha2_256(gsl::span< const uint8_t > buffer) const override
sha2_256 function calculates 32-byte sha2-256 hash
Hash512 blake2b_512(gsl::span< const uint8_t > buffer) const override
blake2b_512 function calculates 64-byte blake2b hash
void make_twox256(const uint8_t *in, uint32_t len, uint8_t *out)
Hash128 blake2b_128(gsl::span< const uint8_t > buffer) const override
blake2b_128 function calculates 16-byte blake2b hash
Hash256 keccak_256(gsl::span< const uint8_t > buffer) const override
keccak_256 function calculates 32-byte keccak hash
Hash64 blake2b_64(gsl::span< const uint8_t > buffer) const override
blake2b_64 function calculates 8-byte blake2b hash
static constexpr size_t size()
common::Hash256 sha256(std::string_view input)
void make_twox128(const uint8_t *in, uint32_t len, uint8_t *out)
Hash256 blake2b_256(gsl::span< const uint8_t > buffer) const override
blake2b_256 function calculates 32-byte blake2b hash