Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

A hasher class for HMAC-SHA-256. More...

#include <hmac_sha256.h>

+ Collaboration diagram for CHMAC_SHA256:

Public Member Functions

 CHMAC_SHA256 (const unsigned char *key, size_t keylen)
 
CHMAC_SHA256Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 32
 

Private Attributes

CSHA256 outer
 
CSHA256 inner
 

Detailed Description

A hasher class for HMAC-SHA-256.

Definition at line 14 of file hmac_sha256.h.

Constructor & Destructor Documentation

◆ CHMAC_SHA256()

CHMAC_SHA256::CHMAC_SHA256 ( const unsigned char *  key,
size_t  keylen 
)

Definition at line 9 of file hmac_sha256.cpp.

References CSHA256::Finalize(), inner, memcpy(), outer, and CSHA256::Write().

Member Function Documentation

◆ Finalize()

void CHMAC_SHA256::Finalize ( unsigned char  hash[OUTPUT_SIZE])

Definition at line 29 of file hmac_sha256.cpp.

References CSHA256::Finalize(), inner, outer, and CSHA256::Write().

◆ Write()

CHMAC_SHA256& CHMAC_SHA256::Write ( const unsigned char *  data,
size_t  len 
)
inline

Definition at line 24 of file hmac_sha256.h.

References inner, and CSHA256::Write().

Member Data Documentation

◆ inner

CSHA256 CHMAC_SHA256::inner
private

Definition at line 18 of file hmac_sha256.h.

Referenced by CHMAC_SHA256(), Finalize(), and Write().

◆ outer

CSHA256 CHMAC_SHA256::outer
private

Definition at line 17 of file hmac_sha256.h.

Referenced by CHMAC_SHA256(), and Finalize().

◆ OUTPUT_SIZE

const size_t CHMAC_SHA256::OUTPUT_SIZE = 32
static

Definition at line 21 of file hmac_sha256.h.

Referenced by ComputeResponse().


The documentation for this class was generated from the following files:
Released under the MIT license