nl::Weave::Profiller::Güvenlik::CASE::WeaveCASEEngine

#include <src/lib/profiles/security/WeaveCASE.h>

Weave CASE protokolünün temel mantığını uygular.

Özet

Herkese açık türler

EngineState enum

Herkese açık özellikler

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

Herkese açık işlevler

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

Herkese açık türler

MotorDurumu

 EngineState

Herkese açık özellikler

AfterKeyGen

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

Yetki Veren

WeaveCASEAuthDelegate * AuthDelegate

beforeKeyGen

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

ECDHÖzelAnahtarı

uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]

ECDHPrivateKeyLength

uint16_t ECDHPrivateKeyLength

Şifreleme Anahtarı

WeaveEncryptionKey EncryptionKey

Şifreleme Türü

uint8_t EncryptionType

Başlatan Tuş Onayı

uint8_t InitiatorKeyConfirmHash[kMaxHashLength]

İstekMsgHash

uint8_t RequestMsgHash[kMaxHashLength]

Oturum Anahtar Kimliği

uint16_t SessionKeyId

Durum

uint8_t State

Herkese açık işlevler

AllowedConfig'ler

uint8_t AllowedConfigs() const 

İzin Verilen Eğriler

uint8_t AllowedCurves() const 

CertType

uint8_t CertType() const 

GenerateBeginSessionİsteği

WEAVE_ERROR GenerateBeginSessionRequest(
  BeginSessionRequestContext & reqCtx,
  PacketBuffer *msgBuf
)

GenerateBeginSessionResponse

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

GenerateInitiatorKeyOnay

WEAVE_ERROR GenerateInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

GetSessionKey

WEAVE_ERROR GetSessionKey(
  const WeaveEncryptionKey *& encKey
)

Başlangıç

void Init(
  void
)

IsAllowedConfig

bool IsAllowedConfig(
  uint32_t config
) const 

İzin Verilen Eğri

bool IsAllowedCurve(
  uint32_t curveId
) const 

Başlatıcı

bool IsInitiator() const 

PerformingKeyConfirm

bool PerformingKeyConfirm() const 

ProcessStartSessionRequest

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

ProcessStartSessionResponse

WEAVE_ERROR ProcessBeginSessionResponse(
  PacketBuffer *msgBuf,
  BeginSessionResponseContext & respCtx
)

ProcessInitiatorKeyConfirm

WEAVE_ERROR ProcessInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

ProcessReconfigure

WEAVE_ERROR ProcessReconfigure(
  PacketBuffer *msgBuf,
  ReconfigureContext & reconfCtx
)

Sıfırla

void Reset(
  void
)

Katılımcı Onaylama Anahtarı Gereklidir

bool ResponderRequiresKeyConfirm() const 

Seçili Yapılandırma

uint32_t SelectedConfig() const 

Seçili Eğri

uint32_t SelectedCurve() const 

SetAllowedConfig'ler

void SetAllowedConfigs(
  uint8_t allowedConfigs
)

SetAllowed Eğrileri

void SetAllowedCurves(
  uint8_t allowedCurves
)

SetAlternativeConfig'ler

void SetAlternateConfigs(
  BeginSessionRequestContext & reqCtx
)

SetAlternateEğriler

void SetAlternateCurves(
  BeginSessionRequestContext & reqCtx
)

SetCertType

void SetCertType(
  uint8_t certType
)

SetResponseerrequireKeyConfirm

void SetResponderRequiresKeyConfirm(
  bool val
)

SetUseBilinenECDHKey

void SetUseKnownECDHKey(
  bool val
)

Kapat

void Shutdown(
  void
)

Bilinen ECDHKey Kullan

bool UseKnownECDHKey() const