libkazv
Kazv::SHA256Desc Class Reference

#include <sha256.hpp>

Classes

struct  Private
 

Public Types

using DataT = std::string
 

Public Member Functions

 SHA256Desc ()
 Construct a SHA256 description. More...
 
 ~SHA256Desc ()
 
SHA256Desc process (DataT data) const &
 Process data and return the next hash state. More...
 
template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
SHA256Desc process (RangeT data) const &
 
SHA256Desc process (DataT data) &&
 Process data and return the next hash state. More...
 
template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
SHA256Desc process (RangeT data) &&
 
void processInPlace (DataT data)
 Process data in-place. More...
 
template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
void processInPlace (RangeT data)
 
std::string get () const
 Get the hash result as unpadded base64. More...
 

Member Typedef Documentation

◆ DataT

using Kazv::SHA256Desc::DataT = std::string

Constructor & Destructor Documentation

◆ SHA256Desc()

Kazv::SHA256Desc::SHA256Desc ( )

Construct a SHA256 description.

◆ ~SHA256Desc()

Kazv::SHA256Desc::~SHA256Desc ( )
default

Member Function Documentation

◆ get()

std::string Kazv::SHA256Desc::get ( ) const

Get the hash result as unpadded base64.

◆ process() [1/4]

SHA256Desc Kazv::SHA256Desc::process ( DataT  data) &&

Process data and return the next hash state.

◆ process() [2/4]

SHA256Desc Kazv::SHA256Desc::process ( DataT  data) const &

Process data and return the next hash state.

◆ process() [3/4]

template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
SHA256Desc Kazv::SHA256Desc::process ( RangeT  data) &&
inline

◆ process() [4/4]

template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
SHA256Desc Kazv::SHA256Desc::process ( RangeT  data) const &
inline

◆ processInPlace() [1/2]

void Kazv::SHA256Desc::processInPlace ( DataT  data)

Process data in-place.

◆ processInPlace() [2/2]

template<class RangeT , class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>, DataT>, int>>
void Kazv::SHA256Desc::processInPlace ( RangeT  data)
inline

The documentation for this class was generated from the following files: