nl::Weave::الملفات الشخصية::الأمان::الحالة::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

وظائف عامة

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

السمات العامة

برامج أساسية

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

تفويض

WeaveCASEAuthDelegate * AuthDelegate

قبل KeyGen

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

مفتاح ECDHPrivate

uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]

طول مفتاح ECDHPrivate

uint16_t ECDHPrivateKeyLength

مفتاح التشفير

WeaveEncryptionKey EncryptionKey

نوع التشفير

uint8_t EncryptionType

أداة InitiatorKeyHasHash

uint8_t InitiatorKeyConfirmHash[kMaxHashLength]

طلب رسالة التجزئة

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
)

تأكيد مفتاح GenerateInitiator

WEAVE_ERROR GenerateInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

GetSessionKey

WEAVE_ERROR GetSessionKey(
  const WeaveEncryptionKey *& encKey
)

إنيت

void Init(
  void
)

الضبط المسموح به

bool IsAllowedConfig(
  uint32_t config
) const 

منح الإذن

bool IsAllowedCurve(
  uint32_t curveId
) const 

المُنشئ

bool IsInitiator() const 

تأكيد الأداء

bool PerformingKeyConfirm() const 

ProcessStartSessionRequest

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

ProcessStartSessionResponse

WEAVE_ERROR ProcessBeginSessionResponse(
  PacketBuffer *msgBuf,
  BeginSessionResponseContext & respCtx
)

تأكيد ProcessInitiatorKey

WEAVE_ERROR ProcessInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

إعادة تهيئة Process

WEAVE_ERROR ProcessReconfigure(
  PacketBuffer *msgBuf,
  ReconfigureContext & reconfCtx
)

إعادة الضبط

void Reset(
  void
)

رمز الاستجابة للاستجابة

bool ResponderRequiresKeyConfirm() const 

العنصر المحدد

uint32_t SelectedConfig() const 

منحنى محدد

uint32_t SelectedCurve() const 

إعدادات الضبط المسموح بها

void 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
)

ضبط استخدام واجهة برمجة التطبيقات (ECECHH)

void SetUseKnownECDHKey(
  bool val
)

إيقاف التشغيل

void Shutdown(
  void
)

استخدام ECDHKey معروف

bool UseKnownECDHKey() const