发送反馈
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
nl:: Weave:: Profiles:: Security:: WeaveCertificateSet
摘要
公共函数
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)
公共类型
AllocFunct
void *(* AllocFunct)(size_t size)
FreeFunct
void(* FreeFunct)(void *p)
公共属性
CertCount
uint8_t CertCount
证书
WeaveCertificateData * Certs
MaxCerts
uint8_t MaxCerts
受保护的属性
mAllocFunct
AllocFunct mAllocFunct
mDecodeBuf
uint8_t * mDecodeBuf
mDecodeBufSize
uint16_t mDecodeBufSize
mFreeFunct
FreeFunct mFreeFunct
公共函数
AddTrustedKey
WEAVE_ERROR AddTrustedKey(
uint64_t caId,
uint32_t curveId,
const EncodedECPublicKey & pubKey,
const uint8_t *pubKeyId,
uint16_t pubKeyIdLen
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
需要向我们提供更多信息?