nl:: বুনা:: প্রোফাইল:: নিরাপত্তা:: কেস:: ওয়েভকেএসইঞ্জিন

#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

পাবলিক ফাংশন

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

AuthDelegate

WeaveCASEAuthDelegate * AuthDelegate

কিজেনের আগে

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

ECDHPrivateKey

uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]

ECDHPrivateKeyLength

uint16_t ECDHPrivateKeyLength

এনক্রিপশন কী

WeaveEncryptionKey EncryptionKey

এনক্রিপশন টাইপ

uint8_t EncryptionType

InitiatorKeyConfirmHash

uint8_t InitiatorKeyConfirmHash[kMaxHashLength]

অনুরোধMsgHash

uint8_t RequestMsgHash[kMaxHashLength]

SessionKeyId

uint16_t SessionKeyId

অবস্থা

uint8_t State

পাবলিক ফাংশন

অনুমোদিত কনফিগার

uint8_t AllowedConfigs() const 

অনুমোদিত কার্ভস

uint8_t AllowedCurves() const 

সার্ট টাইপ

uint8_t CertType() const 

BeginSessionRequest তৈরি করুন

WEAVE_ERROR GenerateBeginSessionRequest(
  BeginSessionRequestContext & reqCtx,
  PacketBuffer *msgBuf
)

BeginSessionResponse তৈরি করুন

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

GenerateInitiatorKeyConfirm

WEAVE_ERROR GenerateInitiatorKeyConfirm(
  PacketBuffer *msgBuf
)

GetSessionKey

WEAVE_ERROR GetSessionKey(
  const WeaveEncryptionKey *& encKey
)

এটা

void Init(
  void
)

IsAllowedConfig

bool IsAllowedConfig(
  uint32_t config
) const 

অনুমতিপ্রাপ্ত কার্ভ

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
)

SetAllowedCurves

void SetAllowedCurves(
  uint8_t allowedCurves
)

SetAlternateConfigs

void SetAlternateConfigs(
  BeginSessionRequestContext & reqCtx
)

AlternateCurves সেট করুন

void SetAlternateCurves(
  BeginSessionRequestContext & reqCtx
)

সেটCertType

void SetCertType(
  uint8_t certType
)

SetResponderRequiresKeyConfirm

void SetResponderRequiresKeyConfirm(
  bool val
)

KnownECDHKey ব্যবহার করুন

void SetUseKnownECDHKey(
  bool val
)

শাটডাউন

void Shutdown(
  void
)

KnownECDHKey ব্যবহার করুন

bool UseKnownECDHKey() const