nl::Weave::Profiles::Security::WeaveSignatureGenerator

#include <src/lib/profiles/security/WeaveSig.h>

使用記憶體內私密金鑰產生 Weave 簽名。

摘要

此類別可用來對 WeaveSignature TLV 結構進行編碼,此結構會使用提供的私密金鑰計算簽名資料欄位。

繼承

沿用自: nl::Weave::Profiles::Security::WeaveSignatureGeneratorBase

建構函式和解構函式

WeaveSignatureGenerator(WeaveCertificateSet & certSet, const uint8_t *privKey, uint16_t privKeyLen)

公開屬性

PrivKey
const uint8_t *
PrivKeyLen
uint16_t

公開函式

GenerateSignature(const uint8_t *msgHash, uint8_t msgHashLen, TLVWriter & writer, uint64_t tag) __OVERRIDE
virtual WEAVE_ERROR

公開屬性

PrivKey

const uint8_t * PrivKey

PrivKeyLen

uint16_t PrivKeyLen

公開函式

GenerateSignature

virtual WEAVE_ERROR GenerateSignature(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  TLVWriter & writer,
  uint64_t tag
) __OVERRIDE

WeaveSignatureGenerator

 WeaveSignatureGenerator(
  WeaveCertificateSet & certSet,
  const uint8_t *privKey,
  uint16_t privKeyLen
)