6 #ifndef KAGOME_CORE_HASHER_HASHER_HPP_ 7 #define KAGOME_CORE_HASHER_HASHER_HPP_ 28 virtual Hash64 twox_64(gsl::span<const uint8_t> buffer)
const = 0;
95 #endif // KAGOME_CORE_HASHER_HASHER_HPP_
virtual Hash256 sha2_256(gsl::span< const uint8_t > buffer) const =0
sha2_256 function calculates 32-byte sha2-256 hash
virtual Hash512 blake2b_512(gsl::span< const uint8_t > buffer) const =0
blake2b_512 function calculates 64-byte blake2b hash
virtual Hash256 twox_256(gsl::span< const uint8_t > buffer) const =0
twox_256 calculates 32-byte twox hash
virtual Hash256 keccak_256(gsl::span< const uint8_t > buffer) const =0
keccak_256 function calculates 32-byte keccak hash
virtual Hash128 twox_128(gsl::span< const uint8_t > buffer) const =0
twox_128 calculates 16-byte twox hash
virtual Hash64 blake2b_64(gsl::span< const uint8_t > buffer) const =0
blake2b_64 function calculates 8-byte blake2b hash
virtual Hash256 blake2b_256(gsl::span< const uint8_t > buffer) const =0
blake2b_256 function calculates 32-byte blake2b hash
virtual Hash256 blake2s_256(gsl::span< const uint8_t > buffer) const =0
blake2s_256 function calculates 32-byte blake2s hash
virtual Hash128 blake2b_128(gsl::span< const uint8_t > buffer) const =0
blake2b_128 function calculates 16-byte blake2b hash
virtual ~Hasher()=default
virtual Hash64 twox_64(gsl::span< const uint8_t > buffer) const =0
twox_64 calculates 8-byte twox hash