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

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

Generates a WeaveSignature using an in-memory private key.

Summary

This is class can be used encode a WeaveSignature TLV structure where the signature data field is computed using a supplied private key.

Inheritance

Inherits from: nl::Weave::Profiles::Security::WeaveSignatureGeneratorBase

Constructors and Destructors

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

Public attributes

PrivKey
const uint8_t *
PrivKeyLen
uint16_t

Public functions

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

Public attributes

PrivKey

const uint8_t * PrivKey

PrivKeyLen

uint16_t PrivKeyLen

Public functions

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
)