нл:: Переплетение:: Профили:: Безопасность:: СЛУЧАЙ:: WeaveCASEДвигатель

#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

Общественные функции

AllowedConfigs () const
uint8_t
AllowedCurves () const
uint8_t
CertType () const
uint8_t
GenerateBeginSessionRequest ( BeginSessionRequestContext & reqCtx, PacketBuffer *msgBuf)
GenerateBeginSessionResponse ( BeginSessionResponseContext & respCtx, PacketBuffer *msgBuf, BeginSessionRequestContext & reqCtx)
GenerateInitiatorKeyConfirm ( PacketBuffer *msgBuf)
GetSessionKey (const WeaveEncryptionKey *& encKey)
Init (void)
void
IsAllowedConfig (uint32_t config) const
bool
IsAllowedCurve (uint32_t curveId) const
bool
IsInitiator () const
bool
PerformingKeyConfirm () const
bool
ProcessBeginSessionRequest ( PacketBuffer *msgBuf, BeginSessionRequestContext & reqCtx, ReconfigureContext & reconfCtx)
ProcessBeginSessionResponse ( PacketBuffer *msgBuf, BeginSessionResponseContext & respCtx)
ProcessInitiatorKeyConfirm ( PacketBuffer *msgBuf)
ProcessReconfigure ( PacketBuffer *msgBuf, ReconfigureContext & reconfCtx)
Reset (void)
void
ResponderRequiresKeyConfirm () const
bool
SelectedConfig () const
uint32_t
SelectedCurve () const
uint32_t
SetAllowedConfigs (uint8_t allowedConfigs)
void
SetAllowedCurves (uint8_t allowedCurves)
void
SetAlternateConfigs ( BeginSessionRequestContext & reqCtx)
void
SetAlternateCurves ( BeginSessionRequestContext & reqCtx)
void
SetCertType (uint8_t certType)
void
SetResponderRequiresKeyConfirm (bool val)
void
SetUseKnownECDHKey (bool val)
void
Shutdown (void)
void
UseKnownECDHKey () const
bool

Публичные типы

Состояние двигателя

 EngineState

Публичные атрибуты

AfterKeyGen

struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@234 AfterKeyGen

Аутделегат

WeaveCASEAuthDelegate * AuthDelegate

ПреждеKeyGen

struct nl::Weave::Profiles::Security::CASE::WeaveCASEEngine::@232::@233 BeforeKeyGen

ECDHЧастный ключ

uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]

ECDHPrivateKeyLength

uint16_t ECDHPrivateKeyLength

Ключ шифрования

WeaveEncryptionKey EncryptionKey

Тип шифрования

uint8_t EncryptionType

InitiatorKeyConfirmHash

uint8_t InitiatorKeyConfirmHash[kMaxHashLength]

ЗапросMsgHash

uint8_t RequestMsgHash[kMaxHashLength]

сессионкейид

uint16_t SessionKeyId

Состояние

uint8_t State

Общественные функции

Разрешенные конфигурации

uint8_t AllowedConfigs() const 

Разрешенные кривые

uint8_t AllowedCurves() const 

Тип сертификата

uint8_t CertType() const 

Генератебегинсессионреквест

WEAVE_ERROR GenerateBeginSessionRequest(
  BeginSessionRequestContext & reqCtx,
  PacketBuffer *msgBuf
)

Генерабегинсессионответ

WEAVE_ERROR GenerateBeginSessionResponse(
  BeginSessionResponseContext & respCtx,
  PacketBuffer *msgBuf,
  BeginSessionRequestContext & reqCtx
)

Генерироватьинициаторкейконфирм

WEAVE_ERROR GenerateInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

GetSessionKey

WEAVE_ERROR GetSessionKey(
  const WeaveEncryptionKey *& encKey
)

В этом

void Init(
  void
)

Исалловедконфиг

bool IsAllowedConfig(
  uint32_t config
) const 

IsAllowedCurve

bool IsAllowedCurve(
  uint32_t curveId
) const 

Исинициатор

bool IsInitiator() const 

ВыполнениеKeyConfirm

bool PerformingKeyConfirm() const 

Процессбегинсессионрекуест

WEAVE_ERROR ProcessBeginSessionRequest(
  PacketBuffer *msgBuf,
  BeginSessionRequestContext & reqCtx,
  ReconfigureContext & reconfCtx
)

Процессбегинсессионответ

WEAVE_ERROR ProcessBeginSessionResponse(
  PacketBuffer *msgBuf,
  BeginSessionResponseContext & respCtx
)

Процессинициаторкейконфирм

WEAVE_ERROR ProcessInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

ПроцессРеконфигурировать

WEAVE_ERROR ProcessReconfigure(
  PacketBuffer *msgBuf,
  ReconfigureContext & reconfCtx
)

Перезагрузить

void Reset(
  void
)

ОтветчикRequiresKeyConfirm

bool ResponderRequiresKeyConfirm() const 

Выбраннаяконфигурация

uint32_t SelectedConfig() const 

Выбранная кривая

uint32_t SelectedCurve() const 

SetAllowedConfigs

void SetAllowedConfigs(
  uint8_t allowedConfigs
)

УстановитьРазрешенныеКривые

void SetAllowedCurves(
  uint8_t allowedCurves
)

Установить альтернативные конфигурации

void SetAlternateConfigs(
  BeginSessionRequestContext & reqCtx
)

УстановитьАльтернативные Кривые

void SetAlternateCurves(
  BeginSessionRequestContext & reqCtx
)

Сетцерттипе

void SetCertType(
  uint8_t certType
)

SetResponderRequiresKeyConfirm

void SetResponderRequiresKeyConfirm(
  bool val
)

SetUseKnownECDHKey

void SetUseKnownECDHKey(
  bool val
)

Неисправность

void Shutdown(
  void
)

UseKnownECDHKey

bool UseKnownECDHKey() const