nl:: Weave:: 프로필:: 보안: CASE:: WeaveCASEEngine
#include <src/lib/profiles/security/WeaveCASE.h>
Weave CASE 프로토콜의 핵심 로직을 구현합니다.
요약
공개 유형 |
|
---|---|
EngineState
|
enum |
공개 속성 |
|
---|---|
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
ECDHPrivateKey
uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]
ECDHPrivateKeyLength
uint16_t ECDHPrivateKeyLength
EncryptionKey
WeaveEncryptionKey EncryptionKey
EncryptionType
uint8_t EncryptionType
InitiatorKeyConfirmHash
uint8_t InitiatorKeyConfirmHash[kMaxHashLength]
RequestMsgHash
uint8_t RequestMsgHash[kMaxHashLength]
세션 키 ID
uint16_t SessionKeyId
상태
uint8_t State
공개 함수
AllowedConfigs
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 )
허용된 콘텐츠 구성
bool IsAllowedConfig( uint32_t config ) const
isAllowedCurve
bool IsAllowedCurve( uint32_t curveId ) const
이니시터
bool IsInitiator() const
수행 키 확인
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 )
응답자 필요 키 확인
bool ResponderRequiresKeyConfirm() const
선택된 구성
uint32_t SelectedConfig() const
선택된 곡선
uint32_t SelectedCurve() const
SetAllowedConfigs
void SetAllowedConfigs( uint8_t allowedConfigs )
SetAllowedCurve
void SetAllowedCurves( uint8_t allowedCurves )
Set대체 구성
void SetAlternateConfigs( BeginSessionRequestContext & reqCtx )
set대체 곡선
void SetAlternateCurves( BeginSessionRequestContext & reqCtx )
SetCertType
void SetCertType( uint8_t certType )
SetResponderRequiresKeyConfirm
void SetResponderRequiresKeyConfirm( bool val )
SetUseUnknownECDHKey
void SetUseKnownECDHKey( bool val )
종료
void Shutdown( void )
ECDHKey 사용
bool UseKnownECDHKey() const