nl:: Weave:: Perfis:: Segurança:: CASE:: WeaveCASEEngine
#include <src/lib/profiles/security/WeaveCASE.h>
Implementa a lógica principal do protocolo CASE do Weave.
Resumo
Tipos públicos |
|
---|---|
EngineState
|
tipo enumerado |
Atributos públicos |
|
---|---|
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
|
Tipos públicos
Estado do mecanismo
EngineState
Atributos públicos
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
Chave privada de CDH
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]
Código da sessão
uint16_t SessionKeyId
Estado
uint8_t State
Funções públicas
ConfiguraçõesPermitidas
uint8_t AllowedConfigs() const
Curves permitidas
uint8_t AllowedCurves() const
CertType
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
Cura IsAllowed
bool IsAllowedCurve( uint32_t curveId ) const
Iniciador
bool IsInitiator() const
PerformanceKeyConfirm
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 )
Reconfigurar processo
WEAVE_ERROR ProcessReconfigure( PacketBuffer *msgBuf, ReconfigureContext & reconfCtx )
Redefinir
void Reset( void )
ResponderRequiresKeyConfirm
bool ResponderRequiresKeyConfirm() const
Configuração selecionada
uint32_t SelectedConfig() const
Curva selecionada
uint32_t SelectedCurve() const
SetAllowedConfigs.
void SetAllowedConfigs( uint8_t allowedConfigs )
Curves setAllowed
void SetAllowedCurves( uint8_t allowedCurves )
SetConfigConfigs
void SetAlternateConfigs( BeginSessionRequestContext & reqCtx )
Curvas alternativas
void SetAlternateCurves( BeginSessionRequestContext & reqCtx )
TipoDeCertCerto
void SetCertType( uint8_t certType )
SetResponderRequiresKeyConfirm
void SetResponderRequiresKeyConfirm( bool val )
SetUseKnownECDHKey.
void SetUseKnownECDHKey( bool val )
Encerramento
void Shutdown( void )
UseKnownECDHKey
bool UseKnownECDHKey() const