nl:: Weave:: Profiles:: Security:: CASE:: WeaveCASEEngine
#include <src/lib/profiles/security/WeaveCASE.h>
Weave CASE プロトコルのコアロジックを実装します。
まとめ
パブリック タイプ |
|
---|---|
EngineState
|
列挙型 |
パブリック属性 |
|
---|---|
AfterKeyGen
|
struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@234
|
AuthDelegate
|
|
BeforeKeyGen
|
struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@233
|
ECDHPrivateKey[kMaxECDHPrivateKeySize]
|
uint8_t
|
ECDHPrivateKeyLength
|
uint16_t
|
EncryptionKey
|
|
EncryptionType
|
uint8_t
|
InitiatorKeyConfirmHash[kMaxHashLength]
|
uint8_t
|
RequestMsgHash[kMaxHashLength]
|
uint8_t
|
SessionKeyId
|
uint16_t
|
State
|
uint8_t
|
パブリック タイプ
エンジン状態
EngineState
パブリック属性
AfterKeyGen
struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@234 AfterKeyGen
AuthDelegate
WeaveCASEAuthDelegate * AuthDelegate
beforeKeyGen
struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@233 BeforeKeyGen
ECDH 秘密鍵
uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]
ECDH 秘密鍵の長さ
uint16_t ECDHPrivateKeyLength
EncryptionKey
WeaveEncryptionKey EncryptionKey
EncryptionType
uint8_t EncryptionType
InitiatorKeyConfirmHash
uint8_t InitiatorKeyConfirmHash[kMaxHashLength]
リクエスト ハッシュ
uint8_t RequestMsgHash[kMaxHashLength]
セッションキー ID
uint16_t SessionKeyId
状態
uint8_t State
パブリック関数
AllowedConfig
uint8_t AllowedConfigs() const
許可された曲線
uint8_t AllowedCurves() const
認定タイプ
uint8_t CertType() const
GenerateBeginSessionRequest
WEAVE_ERROR GenerateBeginSessionRequest( BeginSessionRequestContext & reqCtx, PacketBuffer *msgBuf )
GenerateBeginSessionResponse
WEAVE_ERROR GenerateBeginSessionResponse( BeginSessionResponseContext & respCtx, PacketBuffer *msgBuf, BeginSessionRequestContext & reqCtx )
GenerateInitiatorKeyConfirm
WEAVE_ERROR GenerateInitiatorKeyConfirm( PacketBuffer *msgBuf )
GetSessionKey
WEAVE_ERROR GetSessionKey( const WeaveEncryptionKey *& encKey )
init
void Init( void )
IsAllowedConfig
bool IsAllowedConfig( uint32_t config ) const
IsAllowedCurve(曲線を許可する)
bool IsAllowedCurve( uint32_t curveId ) const
イニシエータ
bool IsInitiator() const
PerformingKeyConfirm
bool PerformingKeyConfirm() const
ProcessBeginSessionRequest をご覧ください。
WEAVE_ERROR ProcessBeginSessionRequest( PacketBuffer *msgBuf, BeginSessionRequestContext & reqCtx, ReconfigureContext & reconfCtx )
ProcessBeginSessionResponse(プロセス開始セッションのレスポンス)
WEAVE_ERROR ProcessBeginSessionResponse( PacketBuffer *msgBuf, BeginSessionResponseContext & respCtx )
ProcessInitiatorKeyConfirm
WEAVE_ERROR ProcessInitiatorKeyConfirm( PacketBuffer *msgBuf )
プロセス再構成
WEAVE_ERROR ProcessReconfigure( PacketBuffer *msgBuf, ReconfigureContext & reconfCtx )
リセット
void Reset( void )
ResponderRequiresKeyConfirm
bool ResponderRequiresKeyConfirm() const
選択した設定
uint32_t SelectedConfig() const
選択した曲線
uint32_t SelectedCurve() const
SetAllowedConfig
void SetAllowedConfigs( uint8_t allowedConfigs )
SetAllowedCurves
void SetAllowedCurves( uint8_t allowedCurves )
Set 代替構成
void SetAlternateConfigs( BeginSessionRequestContext & reqCtx )
SetAltCurves
void SetAlternateCurves( BeginSessionRequestContext & reqCtx )
SetCertType
void SetCertType( uint8_t certType )
SetResponderRequiresKeyConfirm
void SetResponderRequiresKeyConfirm( bool val )
SetUseKnownECDHKey
void SetUseKnownECDHKey( bool val )
シャットダウン
void Shutdown( void )
UseKnownECDHKey を使用します。
bool UseKnownECDHKey() const