Bitcoin
|
#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 |
A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32)
CHKDF_HMAC_SHA256_L32::CHKDF_HMAC_SHA256_L32 | ( | const unsigned char * | ikm, |
size_t | ikmlen, | ||
const std::string & | salt | ||
) |
void CHKDF_HMAC_SHA256_L32::Expand32 | ( | const std::string & | info, |
unsigned char | hash[OUTPUT_SIZE] | ||
) |
|
private |
|
staticprivate |