class WeaveSecurityManager
Defined at line 182 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
Public Members
WeaveFabricState * FabricState
WeaveExchangeManager * ExchangeManager
uint8_t State
uint32_t InitiatorCASEConfig
uint32_t InitiatorCASECurveId
uint8_t InitiatorAllowedCASEConfigs
uint8_t InitiatorAllowedCASECurves
uint8_t ResponderAllowedCASEConfigs
uint8_t ResponderAllowedCASECurves
uint8_t InitiatorKeyExportConfig
uint8_t InitiatorAllowedKeyExportConfigs
uint8_t ResponderAllowedKeyExportConfigs
uint32_t SessionEstablishTimeout
uint32_t IdleSessionTimeout
SessionEstablishedFunct OnSessionEstablished
SessionErrorFunct OnSessionError
KeyErrorMsgRcvdFunct OnKeyErrorMsgRcvd
Public Methods
void WeaveSecurityManager ()
WEAVE_ERROR Init (WeaveExchangeManager & aExchangeMgr, System::Layer & aSystemLayer)
void SetCASEAuthDelegate (WeaveCASEAuthDelegate * delegate)
Defined at line 308 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetTAKEAuthDelegate (WeaveTAKEChallengerAuthDelegate * delegate)
Defined at line 315 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetTAKETokenAuthDelegate (WeaveTAKETokenAuthDelegate * delegate)
Defined at line 322 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetKeyExportDelegate (WeaveKeyExportDelegate * delegate)
Defined at line 329 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
WEAVE_ERROR Shutdown ()
WEAVE_ERROR StartPASESession (WeaveConnection * con, WeaveAuthMode requestedAuthMode, void * reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, const uint8_t * pw, uint16_t pwLen)
Initiate a secure PASE session, optionally providing a password.
Session establishment is done over connection that was specified.
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)
Initiate a secure CASE session, optionally providing a CASE auth delegate.
Session establishment is done over specified connection or over UDP using WRM Protocol.
WEAVE_ERROR StartTAKESession (WeaveConnection * con, WeaveAuthMode requestedAuthMode, void * reqState, SessionEstablishedFunct onComplete, SessionErrorFunct onError, bool encryptAuthPhase, bool encryptCommPhase, bool timeLimitedIK, bool sendChallengerId, WeaveTAKEChallengerAuthDelegate * authDelegate)
Initiate a secure TAKE session, optionally providing a TAKE auth delegate.
Session establishment is done over connection that was specified.
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)
Initiate key export protocol.
bool IsKeyError (WEAVE_ERROR err)
Determine whether Weave error code is a key error.
WEAVE_ERROR SendKeyErrorMsg (WeaveMessageInfo * rcvdMsgInfo, const IPPacketInfo * rcvdMsgPacketInfo, WeaveConnection * con, WEAVE_ERROR keyErr)
Send key error message when correct key has not been found and the message cannot be decrypted.
void OnEncryptedMsgRcvd (uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType)
WEAVE_ERROR SendMsgCounterSyncResp (const WeaveMessageInfo * rcvdMsgInfo, const IPPacketInfo * rcvdMsgPacketInfo)
Send message counter synchronization message.
WEAVE_ERROR SendSolitaryMsgCounterSyncReq (const WeaveMessageInfo * rcvdMsgInfo, const IPPacketInfo * rcvdMsgPacketInfo)
Send peer message counter synchronization request.
void HandleMsgCounterSyncRespMsg (WeaveMessageInfo * msgInfo, PacketBuffer * msgBuf)
Handle message counter synchronization response message.
WEAVE_ERROR CancelSessionEstablishment (void * reqState)
void ReserveKey (uint64_t peerNodeId, uint16_t keyId)
void ReleaseKey (uint64_t peerNodeId, uint16_t keyId)
Enumerations
enum State
| Name | Value |
|---|---|
| kState_NotInitialized | 0 |
| kState_Idle | 1 |
| kState_CASEInProgress | 2 |
| kState_PASEInProgress | 3 |
| kState_TAKEInProgress | 4 |
| kState_KeyExportInProgress | 5 |
Defined at line 185 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h