Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
CHKDF_HMAC_SHA256_L32 Class Reference

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

#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)

Definition at line 14 of file hkdf_sha256_32.h.

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 
)

Definition at line 10 of file hkdf_sha256_32.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Expand32()

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

Definition at line 15 of file hkdf_sha256_32.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_prk

unsigned char CHKDF_HMAC_SHA256_L32::m_prk[32]
private

Definition at line 17 of file hkdf_sha256_32.h.

◆ OUTPUT_SIZE

const size_t CHKDF_HMAC_SHA256_L32::OUTPUT_SIZE = 32
staticprivate

Definition at line 18 of file hkdf_sha256_32.h.


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