nl:: বুনা:: প্রোফাইল:: নিরাপত্তা:: ওয়েভ সার্টিফিকেট সেট
সারাংশ
কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর | |
---|---|
WeaveCertificateSet (void) |
পাবলিক প্রকার | |
---|---|
AllocFunct )(size_t size) | typedefvoid *(* |
FreeFunct )(void *p) | typedefvoid(* |
পাবলিক বৈশিষ্ট্য | |
---|---|
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) |
পাবলিক প্রকার
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
পাবলিক ফাংশন
ট্রাস্টেড কী যোগ করুন
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 )
ECDSAS স্বাক্ষর তৈরি করুন
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 )
LastCert
WeaveCertificateData * LastCert( void ) const
LoadCert
WEAVE_ERROR LoadCert( const uint8_t *weaveCert, uint32_t weaveCertLen, uint16_t decodeFlags, WeaveCertificateData *& cert )
LoadCert
WEAVE_ERROR LoadCert( TLVReader & reader, uint16_t decodeFlags, WeaveCertificateData *& cert )
LoadCerts
WEAVE_ERROR LoadCerts( const uint8_t *encodedCerts, uint32_t encodedCertsLen, uint16_t decodeFlags )
LoadCerts
WEAVE_ERROR LoadCerts( TLVReader & reader, uint16_t decodeFlags )
মুক্তি
void Release( void )
SaveCerts
WEAVE_ERROR SaveCerts( TLVWriter & writer, WeaveCertificateData *firstCert, bool includeTrusted )
ValidateCert
WEAVE_ERROR ValidateCert( WeaveCertificateData & cert, ValidationContext & context )
ECDSAS স্বাক্ষর যাচাই করুন
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 )
ValidateCert
WEAVE_ERROR ValidateCert( WeaveCertificateData & cert, ValidationContext & context, uint16_t validateFlags, uint8_t depth )