3#include <xrpl/basics/base_uint.h>
4#include <xrpl/crypto/secure_erase.h>
6#include <boost/endian/conversion.hpp>
30 static constexpr auto const endian = boost::endian::order::native;
53 static constexpr auto const endian = boost::endian::order::native;
76 static constexpr auto const endian = boost::endian::order::native;
121 static constexpr auto const endian = boost::endian::order::native;
136 rh(d0.data(), d0.size());
150template <
bool Secure>
157 static constexpr auto const endian = boost::endian::order::big;
202template <
class... Args>
218template <
class... Args>
static base_uint fromVoid(void const *data)
std::enable_if_t< is_contiguously_hashable< T, Hasher >::value > 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.
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
void secure_erase(void *dest, std::size_t bytes)
Attempts to clear the given blob of memory.
void hash_append(Hasher &h, Slice const &v)
sha512_half_hasher_s::result_type sha512Half_s(Args const &... args)
Returns the SHA512-Half of a series of objects.
Returns the SHA512-Half digest of a message.
void operator()(void const *data, std::size_t size) noexcept
static constexpr auto const endian
void erase(std::false_type)
void erase(std::true_type)
~basic_sha512_half_hasher()
Message digest functions used in the codebase.
void operator()(void const *data, std::size_t size) noexcept
std::array< std::uint8_t, 20 > result_type
static constexpr auto const endian
openssl_ripemd160_hasher()
static constexpr auto const endian
void operator()(void const *data, std::size_t size) noexcept
std::array< std::uint8_t, 32 > result_type
std::array< std::uint8_t, 64 > result_type
void operator()(void const *data, std::size_t size) noexcept
static constexpr auto const endian
Returns the RIPEMD-160 digest of the SHA256 hash of the message.
static constexpr auto const endian
void operator()(void const *data, std::size_t size) noexcept
std::array< std::uint8_t, 20 > result_type