PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CBLAKE2bWriter Class Reference

A writer stream (for serialization) that computes a 256-bit BLAKE2b hash. More...

#include <hash.h>

Public Member Functions

 CBLAKE2bWriter (int nTypeIn, int nVersionIn, const unsigned char *personal)
 
CBLAKE2bWriterwrite (const char *pch, size_t size)
 
uint256 GetHash ()
 
template<typename T >
CBLAKE2bWriteroperator<< (const T &obj)
 

Public Attributes

int nType
 
int nVersion
 

Private Attributes

crypto_generichash_blake2b_state state
 

Detailed Description

A writer stream (for serialization) that computes a 256-bit BLAKE2b hash.

Definition at line 297 of file hash.h.

Constructor & Destructor Documentation

◆ CBLAKE2bWriter()

CBLAKE2bWriter::CBLAKE2bWriter ( int  nTypeIn,
int  nVersionIn,
const unsigned char *  personal 
)
inline

Definition at line 306 of file hash.h.

Member Function Documentation

◆ GetHash()

uint256 CBLAKE2bWriter::GetHash ( )
inline

Definition at line 321 of file hash.h.

Here is the caller graph for this function:

◆ operator<<()

template<typename T >
CBLAKE2bWriter& CBLAKE2bWriter::operator<< ( const T obj)
inline

Definition at line 328 of file hash.h.

Here is the call graph for this function:

◆ write()

CBLAKE2bWriter& CBLAKE2bWriter::write ( const char *  pch,
size_t  size 
)
inline

Definition at line 315 of file hash.h.

Member Data Documentation

◆ nType

int CBLAKE2bWriter::nType

Definition at line 303 of file hash.h.

◆ nVersion

int CBLAKE2bWriter::nVersion

Definition at line 304 of file hash.h.

◆ state

crypto_generichash_blake2b_state CBLAKE2bWriter::state
private

Definition at line 300 of file hash.h.


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