rippled
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ripple::openssl_sha512_hasher Struct Reference

SHA-512 digest. More...

Public Types

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

Public Member Functions

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

Static Public Attributes

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

Private Attributes

char ctx_ [216]
 

Detailed Description

SHA-512 digest.

Note
This uses the OpenSSL implementation

Definition at line 68 of file digest.h.

Member Typedef Documentation

◆ result_type

Definition at line 73 of file digest.h.

Constructor & Destructor Documentation

◆ openssl_sha512_hasher()

ripple::openssl_sha512_hasher::openssl_sha512_hasher ( )

Definition at line 56 of file digest.cpp.

Member Function Documentation

◆ operator()()

void ripple::openssl_sha512_hasher::operator() ( void const *  data,
std::size_t  size 
)
noexcept

Definition at line 66 of file digest.cpp.

◆ operator result_type()

ripple::openssl_sha512_hasher::operator result_type ( )
explicitnoexcept

Definition at line 72 of file digest.cpp.

Member Data Documentation

◆ endian

constexpr const auto ripple::openssl_sha512_hasher::endian = boost::endian::order::native
staticconstexpr

Definition at line 71 of file digest.h.

◆ ctx_

char ripple::openssl_sha512_hasher::ctx_[216]
private

Definition at line 83 of file digest.h.