xrpld
Loading...
Searching...
No Matches
xrpl::OpensslRipemd160Hasher Struct Reference

Message digest functions used in the codebase. More...

#include <digest.h>

Public Types

using result_type = std::array<std::uint8_t, 20>

Public Member Functions

 OpensslRipemd160Hasher ()
void operator() (void const *data, std::size_t size) noexcept
 operator result_type () noexcept

Static Public Attributes

static constexpr auto kEndian = boost::endian::order::native

Private Attributes

char ctx_ [96] {}

Detailed Description

Message digest functions used in the codebase.

Note
These are modeled to meet the requirements of Hasher in the hash_append interface, discussed in proposal:

N3980 "Types Don't Know #" http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3980.html RIPEMD-160 digest

Note
This uses the OpenSSL implementation

Definition at line 27 of file digest.h.

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ OpensslRipemd160Hasher()

xrpl::OpensslRipemd160Hasher::OpensslRipemd160Hasher ( )

Definition at line 10 of file digest.cpp.

Member Function Documentation

◆ operator()()

void xrpl::OpensslRipemd160Hasher::operator() ( void const * data,
std::size_t size )
noexcept

Definition at line 18 of file digest.cpp.

◆ operator result_type()

xrpl::OpensslRipemd160Hasher::operator result_type ( )
explicitnoexcept

Definition at line 24 of file digest.cpp.

Member Data Documentation

◆ kEndian

auto xrpl::OpensslRipemd160Hasher::kEndian = boost::endian::order::native
staticconstexpr

Definition at line 30 of file digest.h.

◆ ctx_

char xrpl::OpensslRipemd160Hasher::ctx_[96] {}
private

Definition at line 43 of file digest.h.