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

SHA-256 digest. More...

Public Types

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

Public Member Functions

 openssl_sha256_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_ [112]
 

Detailed Description

SHA-256 digest.

Note
This uses the OpenSSL implementation

Definition at line 90 of file digest.h.

Member Typedef Documentation

◆ result_type

Definition at line 95 of file digest.h.

Constructor & Destructor Documentation

◆ openssl_sha256_hasher()

ripple::openssl_sha256_hasher::openssl_sha256_hasher ( )

Definition at line 82 of file digest.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 92 of file digest.cpp.

◆ operator result_type()

ripple::openssl_sha256_hasher::operator result_type ( )
explicitnoexcept

Definition at line 98 of file digest.cpp.

Member Data Documentation

◆ endian

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

Definition at line 93 of file digest.h.

◆ ctx_

char ripple::openssl_sha256_hasher::ctx_[112]
private

Definition at line 105 of file digest.h.