Bitcoin
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
CHKDF_HMAC_SHA256_L32 Class Reference

#include <hkdf_sha256_32.h>

Public Member Functions

 CHKDF_HMAC_SHA256_L32 (const unsigned char *ikm, size_t ikmlen, const std::string &salt)
 
void Expand32 (const std::string &info, unsigned char hash[OUTPUT_SIZE])
 

Private Attributes

unsigned char m_prk [32]
 

Static Private Attributes

static const size_t OUTPUT_SIZE = 32
 

Detailed Description

A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32)

Constructor & Destructor Documentation

◆ CHKDF_HMAC_SHA256_L32()

CHKDF_HMAC_SHA256_L32::CHKDF_HMAC_SHA256_L32 ( const unsigned char *  ikm,
size_t  ikmlen,
const std::string &  salt 
)

Member Function Documentation

◆ Expand32()

void CHKDF_HMAC_SHA256_L32::Expand32 ( const std::string &  info,
unsigned char  hash[OUTPUT_SIZE] 
)

Member Data Documentation

◆ m_prk

unsigned char CHKDF_HMAC_SHA256_L32::m_prk[32]
private

◆ OUTPUT_SIZE

const size_t CHKDF_HMAC_SHA256_L32::OUTPUT_SIZE = 32
staticprivate

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