CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace crypto {
60 template<
typename TModeTag,
typename THashTag>
74 void update(std::initializer_list<const RawBuffer> buffers) noexcept;
void Sha256Double(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates double sha256 hash of dataBuffer into hash.
Definition: Hashes.cpp:65
void Keccak_512(const RawBuffer &dataBuffer, Hash512 &hash) noexcept
Calculates the 512-bit Keccak hash of dataBuffer into hash.
Definition: Hashes.cpp:93
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
void Sha3_256(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates the 256-bit SHA3 hash of dataBuffer into hash.
Definition: Hashes.cpp:81
void Sha3_512(const RawBuffer &dataBuffer, Hash512 &hash) noexcept
Calculates the 512-bit SHA3 hash of dataBuffer into hash.
Definition: Hashes.cpp:85
Builder for building a hash.
Definition: Hashes.h:61
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
constexpr size_t Hash160_Size
Definition: src/catapult/types.h:35
void final(OutputType &output) noexcept
Finalize hash calculation. Returns result in output.
Definition: Hashes.cpp:145
void Bitcoin160(const RawBuffer &dataBuffer, Hash160 &hash) noexcept
Calculates bitcoin's hash 160 of dataBuffer into hash (sha256 + ripemd).
Definition: Hashes.cpp:58
void update(const RawBuffer &dataBuffer) noexcept
Updates the state of hash with data inside dataBuffer.
Definition: Hashes.cpp:134
Use with KeccakBuilder to generate Keccak hashes.
Definition: Hashes.h:57
uint8_t m_hashContext[256]
Definition: Hashes.h:81
utils::ByteArray< Hash512_Size, Hash512_tag > Hash512
Definition: src/catapult/types.h:44
Definition: AddressExtractionExtension.cpp:28
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
KeccakBuilder()
Creates a builder.
Definition: Hashes.cpp:128
utils::ByteArray< Hash160_Size, Hash160_tag > Hash160
Definition: src/catapult/types.h:50
void Keccak_256(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates the 256-bit Keccak hash of dataBuffer into hash.
Definition: Hashes.cpp:89
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
Use with KeccakBuilder to generate SHA3 hashes.
Definition: Hashes.h:54
void Ripemd160(const RawBuffer &dataBuffer, Hash160 &hash) noexcept
Calculates the ripemd160 hash of dataBuffer into hash.
Definition: Hashes.cpp:44