nl:: बुनें:: बुनाई सुरक्षा प्रबंधक
सारांश
निर्माता और विनाशक De | |
---|---|
WeaveSecurityManager (void) |
सार्वजनिक प्रकार | |
---|---|
KeyErrorMsgRcvdFunct )(uint16_t keyId, uint8_t encType, uint32_t messageId, uint64_t peerNodeId, WEAVE_ERROR keyErr) | टाइपडीफvoid(* कुंजी त्रुटि संदेश हैंडलिंग फ़ंक्शन का प्रकार। |
KeyExportCompleteFunct )(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, uint32_t exportedKeyId, const uint8_t *exportedKey, uint16_t exportedKeyLen) | टाइपडीफvoid(* कुंजी निर्यात प्रोटोकॉल पूर्ण हैंडलिंग फ़ंक्शन का प्रकार। |
KeyExportErrorFunct )(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, WEAVE_ERROR localErr, StatusReport *statusReport) | टाइपडीफvoid(* कुंजी निर्यात प्रोटोकॉल त्रुटि प्रबंधन फ़ंक्शन का प्रकार। |
SessionErrorFunct )(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, WEAVE_ERROR localErr, uint64_t peerNodeId, StatusReport *statusReport) | टाइपडीफvoid(* |
SessionEstablishedFunct )(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType) | टाइपडीफvoid(* |
State | एन्यूम |
सार्वजनिक गुण | |
---|---|
CASEUseKnownECDHKey | bool |
ExchangeManager | |
FabricState | |
IdleSessionTimeout | uint32_t |
InitiatorAllowedCASEConfigs | uint8_t |
InitiatorAllowedCASECurves | uint8_t |
InitiatorAllowedKeyExportConfigs | uint8_t |
InitiatorCASEConfig | uint32_t |
InitiatorCASECurveId | uint32_t |
InitiatorKeyExportConfig | uint8_t |
OnKeyErrorMsgRcvd | कुंजी त्रुटि कॉलबैक फ़ंक्शन। |
OnSessionError | SessionErrorFunct |
OnSessionEstablished | SessionEstablishedFunct |
ResponderAllowedCASEConfigs | uint8_t |
ResponderAllowedCASECurves | uint8_t |
ResponderAllowedKeyExportConfigs | uint8_t |
SessionEstablishTimeout | uint32_t |
State | uint8_t |
mCASEEngine | |
mKeyExport | |
mPASEEngine | |
mStartKeyExport_OnComplete | कुंजी निर्यात प्रोटोकॉल कॉलबैक फ़ंक्शन को पूरा करता है। |
mStartKeyExport_OnError | कुंजी निर्यात प्रोटोकॉल त्रुटि कॉलबैक फ़ंक्शन। |
mStartKeyExport_ReqState | void * |
mStartSecureSession_OnComplete | SessionEstablishedFunct |
mStartSecureSession_OnError | SessionErrorFunct |
mStartSecureSession_ReqState | void * |
mTAKEEngine |
सार्वजनिक समारोह | |
---|---|
CancelSessionEstablishment (void *reqState) | चल रहे सत्र प्रतिष्ठान को रद्द करें। |
Init ( WeaveExchangeManager & aExchangeMgr, System::Layer & aSystemLayer) | |
IsKeyError ( WEAVE_ERROR err) | bool जाँचता है कि निर्दिष्ट बुन त्रुटि कोड प्रमुख त्रुटि कोडों में से एक है या नहीं। |
OnEncryptedMsgRcvd (uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType) | void |
ReleaseKey (uint64_t peerNodeId, uint16_t keyId) | void एक संदेश एन्क्रिप्शन कुंजी आरक्षण जारी करें। |
ReserveKey (uint64_t peerNodeId, uint16_t keyId) | void एक संदेश एन्क्रिप्शन कुंजी पर आरक्षण रखें। |
SendKeyErrorMsg ( WeaveMessageInfo *rcvdMsgInfo, const IPPacketInfo *rcvdMsgPacketInfo, WeaveConnection *con, WEAVE_ERROR keyErr) | कुंजी त्रुटि संदेश भेजें। |
SetCASEAuthDelegate ( WeaveCASEAuthDelegate *delegate) | void |
SetKeyExportDelegate ( WeaveKeyExportDelegate *delegate) | void |
SetTAKEAuthDelegate ( WeaveTAKEChallengerAuthDelegate *delegate) | void |
SetTAKETokenAuthDelegate ( WeaveTAKETokenAuthDelegate *delegate) | void |
Shutdown (void) | |
StartCASESession ( WeaveConnection *con, uint64_t peerNodeId, const IPAddress & peerAddr, uint16_t peerPort, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, WeaveCASEAuthDelegate *authDelegate, uint64_t terminatingNodeId) | इस विधि को नया स्थापित करने या मौजूदा केस सत्र खोजने के लिए कहा जाता है। |
StartKeyExport ( WeaveConnection *con, uint64_t peerNodeId, const IPAddress & peerAddr, uint16_t peerPort, uint32_t keyId, bool signMessage, void *reqState, KeyExportCompleteFunct onComplete, KeyExportErrorFunct onError, WeaveKeyExportDelegate *keyExportDelegate) | |
StartPASESession ( WeaveConnection *con, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, const uint8_t *pw, uint16_t pwLen) | सुरक्षित PASE सत्र स्थापित करने के लिए इस विधि को कहा जाता है। |
StartTAKESession ( WeaveConnection *con, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, bool encryptAuthPhase, bool encryptCommPhase, bool timeLimitedIK, bool sendChallengerId, WeaveTAKEChallengerAuthDelegate *authDelegate) | सुरक्षित टेक सत्र स्थापित करने के लिए इस विधि को बुलाया जाता है। |
सार्वजनिक प्रकार
KeyErrorMsgRcvdFunct
void(* KeyErrorMsgRcvdFunct)(uint16_t keyId, uint8_t encType, uint32_t messageId, uint64_t peerNodeId, WEAVE_ERROR keyErr)
कुंजी त्रुटि संदेश हैंडलिंग फ़ंक्शन का प्रकार।
विवरण | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
|
KeyExportCompleteFunction
void(* KeyExportCompleteFunct)(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, uint32_t exportedKeyId, const uint8_t *exportedKey, uint16_t exportedKeyLen)
कुंजी निर्यात प्रोटोकॉल पूर्ण हैंडलिंग फ़ंक्शन का प्रकार।
विवरण | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
|
KeyExportErrorFunction
void(* KeyExportErrorFunct)(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, WEAVE_ERROR localErr, StatusReport *statusReport)
कुंजी निर्यात प्रोटोकॉल त्रुटि प्रबंधन फ़ंक्शन का प्रकार।
विवरण | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
|
सत्र त्रुटि समारोह
void(* SessionErrorFunct)(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, WEAVE_ERROR localErr, uint64_t peerNodeId, StatusReport *statusReport)
सत्र स्थापित समारोह
void(* SessionEstablishedFunct)(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType)
राज्य
State
सार्वजनिक गुण
CASEUseज्ञातECDHकुंजी
bool CASEUseKnownECDHKey
एक्सचेंज मैनेजर
WeaveExchangeManager * ExchangeManager
फैब्रिकस्टेट
WeaveFabricState * FabricState
निष्क्रिय सत्र समयबाह्य
uint32_t IdleSessionTimeout
आरंभकर्ताअनुमति CASEConfigs
uint8_t InitiatorAllowedCASEConfigs
आरंभकर्ताअनुमति CASECurves
uint8_t InitiatorAllowedCASECurves
सर्जकअनुमति प्राप्तKeyExportConfigs
uint8_t InitiatorAllowedKeyExportConfigs
सर्जक CASEConfig
uint32_t InitiatorCASEConfig
आरंभकर्ताCASECurveId
uint32_t InitiatorCASECurveId
आरंभकर्ताकीएक्सपोर्टकॉन्फ़िगरेशन
uint8_t InitiatorKeyExportConfig
OnKeyErrorMsgRcvd
KeyErrorMsgRcvdFunct OnKeyErrorMsgRcvd
कुंजी त्रुटि कॉलबैक फ़ंक्शन।
कुंजी त्रुटि संदेश प्राप्त होने पर इस फ़ंक्शन को कॉल किया जाता है।
ऑनसेशनत्रुटि
SessionErrorFunct OnSessionError
ऑनसेशन स्थापित
SessionEstablishedFunct OnSessionEstablished
प्रत्युत्तर अनुमत CASEConfigs
uint8_t ResponderAllowedCASEConfigs
प्रत्युत्तर अनुमत CASE कर्व्स
uint8_t ResponderAllowedCASECurves
प्रत्युत्तर अनुमत KeyExportConfigs
uint8_t ResponderAllowedKeyExportConfigs
सत्रस्थापितसमयबाह्य
uint32_t SessionEstablishTimeout
राज्य
uint8_t State
एमसीएएसईइंजिन
WeaveCASEEngine * mCASEEngine
एमकेएक्सपोर्ट
WeaveKeyExport * mKeyExport
एमपीएएसई इंजन
WeavePASEEngine * mPASEEngine
mStartKeyExport_OnComplete
KeyExportCompleteFunct mStartKeyExport_OnComplete
कुंजी निर्यात प्रोटोकॉल कॉलबैक फ़ंक्शन को पूरा करता है।
गुप्त कुंजी निर्यात प्रक्रिया पूरी होने पर इस फ़ंक्शन को कहा जाता है।
mStartKeyExport_OnError
KeyExportErrorFunct mStartKeyExport_OnError
कुंजी निर्यात प्रोटोकॉल त्रुटि कॉलबैक फ़ंक्शन।
इस फ़ंक्शन को तब कहा जाता है जब कुंजी निर्यात प्रक्रिया के दौरान कोई त्रुटि आती है।
mStartKeyExport_ReqState
void * mStartKeyExport_ReqState
mStartSecureSession_OnComplete
SessionEstablishedFunct mStartSecureSession_OnComplete
mStartSecureSession_OnError
SessionErrorFunct mStartSecureSession_OnError
mStartSecureSession_ReqState
void * mStartSecureSession_ReqState
एमटेक इंजन
WeaveTAKEEngine * mTAKEEngine
सार्वजनिक समारोह
रद्द करेंसत्र स्थापना
WEAVE_ERROR CancelSessionEstablishment( void *reqState )
चल रहे सत्र प्रतिष्ठान को रद्द करें।
विवरण | |||||
---|---|---|---|---|---|
मापदंडों |
| ||||
वापसी मूल्य |
|
में इस
WEAVE_ERROR Init( WeaveExchangeManager & aExchangeMgr, System::Layer & aSystemLayer )
IsKeyError
bool IsKeyError( WEAVE_ERROR err )
जाँचता है कि निर्दिष्ट बुन त्रुटि कोड प्रमुख त्रुटि कोडों में से एक है या नहीं।
इस फ़ंक्शन को यह निर्धारित करने के लिए कहा जाता है कि क्या संदेश के आरंभकर्ता को कुंजी त्रुटि संदेश भेजा जाना चाहिए जो डिकोडिंग के दौरान सही कुंजी खोजने में विफल रहा।
विवरण | |||||
---|---|---|---|---|---|
मापदंडों |
| ||||
वापसी मूल्य |
|
ऑनएन्क्रिप्टेडMsgRcvd
void OnEncryptedMsgRcvd( uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType )
रिलीजकी
void ReleaseKey( uint64_t peerNodeId, uint16_t keyId )
एक संदेश एन्क्रिप्शन कुंजी आरक्षण जारी करें।
एक आरक्षण जारी करें जिसे पहले एक संदेश एन्क्रिप्शन कुंजी पर रखा गया था।
एक विशेष कुंजी पर रखा हर आरक्षण के लिए, ReleaseKey () विधि से अधिक नहीं एक बार बुलाया जाना चाहिए।
यह विधि किसी भी प्रकार की कुंजी आईडी को स्वीकार करती है, जिसमें कोई नहीं भी शामिल है। जिन कुंजी आईडी में वास्तविक कुंजियों का नाम नहीं है, उन्हें अनदेखा कर दिया जाता है।
विवरण | |||||
---|---|---|---|---|---|
मापदंडों |
|
रिजर्वकी
void ReserveKey( uint64_t peerNodeId, uint16_t keyId )
एक संदेश एन्क्रिप्शन कुंजी पर आरक्षण रखें।
कुंजी आरक्षण का उपयोग यह संकेत देने के लिए किया जाता है कि एक विशेष कुंजी सक्रिय रूप से उपयोग में है और इसे बनाए रखा जाना चाहिए। ध्यान दें कि एक कुंजी पर आरक्षण रखने की गारंटी नहीं है कि कुंजी को एक स्पष्ट क्रिया द्वारा हटाया नहीं जाएगा जैसे कि एक KeyError संदेश का स्वागत।
एक विशेष कुंजी पर रखा हर आरक्षण के लिए, करने के लिए एक इसी कॉल ReleaseKey () किया जाना चाहिए।
यह विधि किसी भी प्रकार की कुंजी आईडी को स्वीकार करती है, जिसमें कोई नहीं भी शामिल है। जिन कुंजी आईडी में वास्तविक कुंजियों का नाम नहीं होता है, उन्हें अनदेखा कर दिया जाता है।
विवरण | |||||
---|---|---|---|---|---|
मापदंडों |
|
SendKeyErrorMsg
WEAVE_ERROR SendKeyErrorMsg( WeaveMessageInfo *rcvdMsgInfo, const IPPacketInfo *rcvdMsgPacketInfo, WeaveConnection *con, WEAVE_ERROR keyErr )
कुंजी त्रुटि संदेश भेजें।
प्राप्त होने पर इस फ़ंक्शन को कॉल किया जाता है कुंजी त्रुटि के कारण बुन संदेश डिकोडिंग विफल हो जाता है।
विवरण | |||||||||
---|---|---|---|---|---|---|---|---|---|
मापदंडों |
| ||||||||
वापसी मूल्य |
|
CASEAuthDelegate सेट करें
void SetCASEAuthDelegate( WeaveCASEAuthDelegate *delegate )
SetKeyExportDelegate
void SetKeyExportDelegate( WeaveKeyExportDelegate *delegate )
SetTAKEAuthDelegate
void SetTAKEAuthDelegate( WeaveTAKEChallengerAuthDelegate *delegate )
SetTAKETokenAuthDelegate
void SetTAKETokenAuthDelegate( WeaveTAKETokenAuthDelegate *delegate )
शट डाउन
WEAVE_ERROR Shutdown( void )
प्रारंभ मामलासत्र
WEAVE_ERROR StartCASESession( WeaveConnection *con, uint64_t peerNodeId, const IPAddress & peerAddr, uint16_t peerPort, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, WeaveCASEAuthDelegate *authDelegate, uint64_t terminatingNodeId )
इस विधि को नया स्थापित करने या मौजूदा केस सत्र खोजने के लिए कहा जाता है।
विवरण | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
| ||||||||||||||||||||
वापसी मूल्य |
|
स्टार्टकी एक्सपोर्ट
WEAVE_ERROR StartKeyExport( WeaveConnection *con, uint64_t peerNodeId, const IPAddress & peerAddr, uint16_t peerPort, uint32_t keyId, bool signMessage, void *reqState, KeyExportCompleteFunct onComplete, KeyExportErrorFunct onError, WeaveKeyExportDelegate *keyExportDelegate )
प्रारंभपाससत्र
WEAVE_ERROR StartPASESession( WeaveConnection *con, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, const uint8_t *pw, uint16_t pwLen )
सुरक्षित PASE सत्र स्थापित करने के लिए इस विधि को कहा जाता है।
विवरण | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
| ||||||||||||||
वापसी मूल्य |
|
स्टार्टटेकसेशन
WEAVE_ERROR StartTAKESession( WeaveConnection *con, WeaveAuthMode requestedAuthMode, void *reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, bool encryptAuthPhase, bool encryptCommPhase, bool timeLimitedIK, bool sendChallengerId, WeaveTAKEChallengerAuthDelegate *authDelegate )
सुरक्षित टेक सत्र स्थापित करने के लिए इस विधि को बुलाया जाता है।
विवरण | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
मापदंडों |
| ||||||||||||||||||||
वापसी मूल्य |
|
बुनाई सुरक्षा प्रबंधक
WeaveSecurityManager( void )