nl::Weave::Crypto::HKDF
Summary
Constructors and Destructors
|
HKDF(void)
|
~HKDF(void)
|
Public static functions
|
DeriveKey(const uint8_t *salt, uint16_t saltLen, const uint8_t *keyMaterial1, uint16_t keyMaterial1Len, const uint8_t *keyMaterial2, uint16_t keyMaterial2Len, const uint8_t *info, uint16_t infoLen, uint8_t *outKey, uint16_t outKeyBufSize, uint16_t outKeyLen)
|
|
Public types
Public attributes
PseudoRandomKey
uint8_t PseudoRandomKey[kPseudoRandomKeyLength]
Public functions
AddKeyMaterial
void AddKeyMaterial(
const uint8_t *keyData,
uint16_t keyDataLen
)
AddKeyMaterial
void AddKeyMaterial(
const BIGNUM & num
)
void BeginExtractKey(
const uint8_t *salt,
uint16_t saltLen
)
ExpandKey
WEAVE_ERROR ExpandKey(
const uint8_t *info,
uint16_t infoLen,
uint16_t keyLen,
uint8_t *outKey
)
Public static functions
DeriveKey
WEAVE_ERROR DeriveKey(
const uint8_t *salt,
uint16_t saltLen,
const uint8_t *keyMaterial1,
uint16_t keyMaterial1Len,
const uint8_t *keyMaterial2,
uint16_t keyMaterial2Len,
const uint8_t *info,
uint16_t infoLen,
uint8_t *outKey,
uint16_t outKeyBufSize,
uint16_t outKeyLen
)