nl::Weave::Profiles::Security::WeaveSignatureGeneratorBase

这是一个抽象类。

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

提供用于生成 WeaveSignature 的通用功能。

摘要

它是一个抽象基类,可用于对 WeaveSignature TLV 结构进行编码。此类提供了对此类签名进行编码的通用功能,但会委托子类负责对签名数据字段进行计算和编码。

继承

已知直接子类
nl::Weave::Profiles::Security::KeyExport::__FINAL
nl::Weave::Profiles::Security::WeaveSignatureGenerator

公共类型

@290 枚举

公共属性

CertSet
Flags
uint16_t
SigAlgoOID
OID
SigningCert

公共函数

GenerateSignature(const uint8_t *msgHash, uint8_t msgHashLen, TLVWriter & writer)
GenerateSignature(const uint8_t *msgHash, uint8_t msgHashLen, uint8_t *sigBuf, uint16_t sigBufSize, uint16_t & sigLen)
GenerateSignature(const uint8_t *msgHash, uint8_t msgHashLen, TLVWriter & writer, uint64_t tag)
virtual WEAVE_ERROR

受保护的函数

GenerateSignatureData(const uint8_t *msgHash, uint8_t msgHashLen, TLVWriter & writer)=0
virtual WEAVE_ERROR
WeaveSignatureGeneratorBase(WeaveCertificateSet & certSet)

公共类型

@290

 @290

公共属性

证书集

WeaveCertificateSet & CertSet

标志

uint16_t Flags

SigAlgoOID

OID SigAlgoOID

签名证书

WeaveCertificateData * SigningCert

公共函数

GenerateSignature(生成签名)

WEAVE_ERROR GenerateSignature(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  TLVWriter & writer
)

GenerateSignature(生成签名)

WEAVE_ERROR GenerateSignature(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  uint8_t *sigBuf,
  uint16_t sigBufSize,
  uint16_t & sigLen
)

GenerateSignature(生成签名)

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

受保护的函数

GenerateSignatureData

virtual WEAVE_ERROR GenerateSignatureData(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  TLVWriter & writer
)=0

WeaveSignatureGeneratorBase

 WeaveSignatureGeneratorBase(
  WeaveCertificateSet & certSet
)