nl:: बुनें:: प्रोफाइल:: सुरक्षा:: बुनाई प्रमाणपत्र सेट

सारांश

निर्माता और विनाशक

WeaveCertificateSet (void)

सार्वजनिक प्रकार

AllocFunct )(size_t size) टाइपडीफ
void *(*
FreeFunct )(void *p) टाइपडीफ
void(*

सार्वजनिक गुण

CertCount
uint8_t
Certs
MaxCerts
uint8_t

संरक्षित गुण

mAllocFunct
AllocFunct
mDecodeBuf
uint8_t *
mDecodeBufSize
uint16_t
mFreeFunct
FreeFunct

सार्वजनिक समारोह

AddTrustedKey (uint64_t caId, uint32_t curveId, const EncodedECPublicKey & pubKey, const uint8_t *pubKeyId, uint16_t pubKeyIdLen)
Clear (void)
void
FindCert (const CertificateKeyId & subjectKeyId) const
FindValidCert (const WeaveDN & subjectDN, const CertificateKeyId & subjectKeyId, ValidationContext & context, WeaveCertificateData *& cert)
GenerateECDSASignature (const uint8_t *msgHash, uint8_t msgHashLen, WeaveCertificateData & cert, const EncodedECPrivateKey & privKey, EncodedECDSASignature & encodedSig)
Init (uint8_t maxCerts, uint16_t decodeBufSize)
Init (uint8_t maxCerts, uint16_t decodeBufSize, AllocFunct allocFunct, FreeFunct freeFunct)
Init ( WeaveCertificateData *certBuf, uint8_t certBufSize, uint8_t *decodeBuf, uint16_t decodeBufSize)
LastCert (void) const
LoadCert (const uint8_t *weaveCert, uint32_t weaveCertLen, uint16_t decodeFlags, WeaveCertificateData *& cert)
LoadCert (TLVReader & reader, uint16_t decodeFlags, WeaveCertificateData *& cert)
LoadCerts (const uint8_t *encodedCerts, uint32_t encodedCertsLen, uint16_t decodeFlags)
LoadCerts (TLVReader & reader, uint16_t decodeFlags)
Release (void)
void
SaveCerts (TLVWriter & writer, WeaveCertificateData *firstCert, bool includeTrusted)
ValidateCert ( WeaveCertificateData & cert, ValidationContext & context)
VerifyECDSASignature (const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECDSASignature & encodedSig, WeaveCertificateData & cert)

संरक्षित कार्य

FindValidCert (const WeaveDN & subjectDN, const CertificateKeyId & subjectKeyId, ValidationContext & context, uint16_t validateFlags, uint8_t depth, WeaveCertificateData *& cert)
ValidateCert ( WeaveCertificateData & cert, ValidationContext & context, uint16_t validateFlags, uint8_t depth)

सार्वजनिक प्रकार

आवंटन समारोह

void *(* AllocFunct)(size_t size)

फ्रीफंक्शन

void(* FreeFunct)(void *p)

सार्वजनिक गुण

प्रमाणपत्र गणना

uint8_t CertCount

प्रमाणपत्र

WeaveCertificateData * Certs

मैक्स कर्ट्स

uint8_t MaxCerts

संरक्षित गुण

mAllocFunction

AllocFunct mAllocFunct

mDecodeBuf

uint8_t * mDecodeBuf

mDecodeBufSize

uint16_t mDecodeBufSize

एमफ्रीफंक्शन

FreeFunct mFreeFunct

सार्वजनिक समारोह

AddTrustedKey

WEAVE_ERROR AddTrustedKey(
  uint64_t caId,
  uint32_t curveId,
  const EncodedECPublicKey & pubKey,
  const uint8_t *pubKeyId,
  uint16_t pubKeyIdLen
)

स्पष्ट

void Clear(
  void
)

FindCert

WeaveCertificateData * FindCert(
  const CertificateKeyId & subjectKeyId
) const 

FindValidCert

WEAVE_ERROR FindValidCert(
  const WeaveDN & subjectDN,
  const CertificateKeyId & subjectKeyId,
  ValidationContext & context,
  WeaveCertificateData *& cert
)

ईसीडीएएस हस्ताक्षर उत्पन्न करें

WEAVE_ERROR GenerateECDSASignature(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  WeaveCertificateData & cert,
  const EncodedECPrivateKey & privKey,
  EncodedECDSASignature & encodedSig
)

में इस

WEAVE_ERROR Init(
  uint8_t maxCerts,
  uint16_t decodeBufSize
)

में इस

WEAVE_ERROR Init(
  uint8_t maxCerts,
  uint16_t decodeBufSize,
  AllocFunct allocFunct,
  FreeFunct freeFunct
)

में इस

WEAVE_ERROR Init(
  WeaveCertificateData *certBuf,
  uint8_t certBufSize,
  uint8_t *decodeBuf,
  uint16_t decodeBufSize
)

अंतिम प्रमाणपत्रC

WeaveCertificateData * LastCert(
  void
) const 

लोडसर्ट

WEAVE_ERROR LoadCert(
  const uint8_t *weaveCert,
  uint32_t weaveCertLen,
  uint16_t decodeFlags,
  WeaveCertificateData *& cert
)

लोडसर्ट

WEAVE_ERROR LoadCert(
  TLVReader & reader,
  uint16_t decodeFlags,
  WeaveCertificateData *& cert
)

लोड कर्ट्स

WEAVE_ERROR LoadCerts(
  const uint8_t *encodedCerts,
  uint32_t encodedCertsLen,
  uint16_t decodeFlags
)

लोड कर्ट्स

WEAVE_ERROR LoadCerts(
  TLVReader & reader,
  uint16_t decodeFlags
)

रिहाई

void Release(
  void
)

सेव कर्ट्स

WEAVE_ERROR SaveCerts(
  TLVWriter & writer,
  WeaveCertificateData *firstCert,
  bool includeTrusted
)

सत्यापन प्रमाणपत्र

WEAVE_ERROR ValidateCert(
  WeaveCertificateData & cert,
  ValidationContext & context
)

सत्यापित करेंईसीडीएसएहस्ताक्षर

WEAVE_ERROR VerifyECDSASignature(
  const uint8_t *msgHash,
  uint8_t msgHashLen,
  const EncodedECDSASignature & encodedSig,
  WeaveCertificateData & cert
)

बुनाई प्रमाणपत्र सेट

 WeaveCertificateSet(
  void
)

संरक्षित कार्य

FindValidCert

WEAVE_ERROR FindValidCert(
  const WeaveDN & subjectDN,
  const CertificateKeyId & subjectKeyId,
  ValidationContext & context,
  uint16_t validateFlags,
  uint8_t depth,
  WeaveCertificateData *& cert
)

सत्यापन प्रमाणपत्र

WEAVE_ERROR ValidateCert(
  WeaveCertificateData & cert,
  ValidationContext & context,
  uint16_t validateFlags,
  uint8_t depth
)