3#include <xrpl/basics/base_uint.h>
4#include <xrpl/crypto/secure_erase.h>
6#include <boost/endian/conversion.hpp>
35 static constexpr auto kEndian = boost::endian::order::native;
59 static constexpr auto kEndian = boost::endian::order::native;
83 static constexpr auto kEndian = boost::endian::order::native;
129 static constexpr auto kEndian = boost::endian::order::native;
144 rh(d0.data(), d0.size());
159template <
bool Secure>
166 static constexpr auto kEndian = boost::endian::order::big;
213template <
class... Args>
230template <
class... Args>
static BaseUInt fromVoid(void const *data)
void hash_append(Hasher &h, T const &t) noexcept
Logically concatenate input data to a Hasher.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
detail::BasicSha512HalfHasher< false > sha512_half_hasher
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
void secureErase(void *dest, std::size_t bytes)
Attempts to clear the given blob of memory.
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
sha512_half_hasher_s::result_type sha512HalfS(Args const &... args)
Returns the SHA512-Half of a series of objects.
detail::BasicSha512HalfHasher< true > sha512_half_hasher_s
OpensslSha512Hasher sha512_hasher
OpensslRipemd160Hasher ripemd160_hasher
void hash_append(Hasher &h, Slice const &v)
OpensslSha256Hasher sha256_hasher
Message digest functions used in the codebase.
void operator()(void const *data, std::size_t size) noexcept
static constexpr auto kEndian
std::array< std::uint8_t, 20 > result_type
void operator()(void const *data, std::size_t size) noexcept
static constexpr auto kEndian
std::array< std::uint8_t, 32 > result_type
std::array< std::uint8_t, 64 > result_type
static constexpr auto kEndian
void operator()(void const *data, std::size_t size) noexcept
Returns the RIPEMD-160 digest of the SHA256 hash of the message.
std::array< std::uint8_t, 20 > result_type
void operator()(void const *data, std::size_t size) noexcept
static constexpr auto kEndian
Returns the SHA512-Half digest of a message.
static constexpr auto kEndian
void operator()(void const *data, std::size_t size) noexcept
void erase(std::false_type)
void erase(std::true_type)