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

Ini adalah class abstrak.

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

Menyediakan fungsi generik untuk menghasilkan WeaveSignatures.

Ringkasan

Ini adalah class dasar abstrak yang dapat digunakan mengenkode struktur TLV WeaveSignature. Class ini menyediakan fungsi umum untuk mengenkode tanda tangan tersebut, tetapi didelegasikan ke subclass untuk menghitung dan mengenkode kolom data tanda tangan.

Inheritance

Subclass yang Dikenal Langsung:
  nl::Weave::Profiles::Security::KeyExport::__FINAL
  nl::Weave::Profiles::Security::WeaveSignatureGenerator

Jenis publik

@290 enum

Atribut publik

CertSet
Flags
uint16_t
SigAlgoOID
OID
SigningCert

Fungsi publik

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

Fungsi yang dilindungi

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

Jenis publik

@290

 @290

Atribut publik

CertSet

WeaveCertificateSet & CertSet

Flag

uint16_t Flags

SigAlgoOID

OID SigAlgoOID

SigningCert

WeaveCertificateData * SigningCert

Fungsi publik

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
)

Fungsi yang dilindungi

GenerateSignatureData

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

WeaveSignatureGeneratorBase

 WeaveSignatureGeneratorBase(
  WeaveCertificateSet & certSet
)