nl:: Weave:: Crypto:: HKDFSHA1Or256
Summary
Constructors and Destructors |
|
---|---|
HKDFSHA1Or256(bool useSHA1)
|
|
~HKDFSHA1Or256(void)
|
Public types |
|
---|---|
@345
|
enum |
Public attributes |
|
---|---|
PseudoRandomKey[kMaxPseudoRandomKeyLength]
|
uint8_t
|
mForceAlign
|
uint64_t
|
mObjBuf[1]
|
uint8_t
|
mSHA1ObjBuf[sizeof(HKDFSHA1)]
|
uint8_t
|
mSHA256ObjBuf[sizeof(HKDFSHA256)]
|
uint8_t
|
Public functions |
|
---|---|
AddKeyMaterial(const uint8_t *keyData, uint16_t keyDataLen)
|
void
|
BeginExtractKey(const uint8_t *salt, uint16_t saltLen)
|
void
|
ExpandKey(const uint8_t *info, uint16_t infoLen, uint16_t keyLen, uint8_t *outKey)
|
|
FinishExtractKey(void)
|
|
Reset(void)
|
void
|
Public types
@345
@345
Public attributes
PseudoRandomKey
uint8_t PseudoRandomKey[kMaxPseudoRandomKeyLength]
mForceAlign
uint64_t mForceAlign
mObjBuf
uint8_t mObjBuf[1]
mSHA1ObjBuf
uint8_t mSHA1ObjBuf[sizeof(HKDFSHA1)]
mSHA256ObjBuf
uint8_t mSHA256ObjBuf[sizeof(HKDFSHA256)]
Public functions
AddKeyMaterial
void AddKeyMaterial( const uint8_t *keyData, uint16_t keyDataLen )
BeginExtractKey
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 )
FinishExtractKey
WEAVE_ERROR FinishExtractKey( void )
HKDFSHA1Or256
HKDFSHA1Or256( bool useSHA1 )
Reset
void Reset( void )
~HKDFSHA1Or256
~HKDFSHA1Or256( void )