nl::Weave::Crypto::HKDFSHA1Or256

摘要

建構函式和解構函式

HKDFSHA1Or256(bool useSHA1)
~HKDFSHA1Or256(void)

公開類型

@345 列舉

公開屬性

PseudoRandomKey[kMaxPseudoRandomKeyLength]
uint8_t
mForceAlign
uint64_t
mObjBuf[1]
uint8_t
mSHA1ObjBuf[sizeof(HKDFSHA1)]
uint8_t
mSHA256ObjBuf[sizeof(HKDFSHA256)]
uint8_t

公開函式

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

公開類型

@345

 @345

公開屬性

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

公開函式

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
)

HKDFSHA1 或 256

 HKDFSHA1Or256(
  bool useSHA1
)

重設

void Reset(
  void
)

~HKDFSHA1Or256

 ~HKDFSHA1Or256(
  void
)