nl:: Weave:: Profiles:: Security:: KeyExport:: WeaveKeyExport
#include <src/lib/profiles/security/WeaveKeyExport.h>
Menerapkan logika inti protokol ekspor kunci Weave.
Ringkasan
Jenis publik |
|
---|---|
@260{
|
enum Status objek WeaveKeyExport saat ini. |
Atribut publik |
|
---|---|
ECDHPrivateKey[kMaxECDHPrivateKeySize]
|
uint8_t
|
ECDHPrivateKeyLen
|
uint16_t
|
ECDHPublicKey[kMaxECDHPublicKeySize]
|
uint8_t
|
EncryptionAndAuthenticationKey[kEncryptionAndAuthenticationKeySize]
|
uint8_t
|
GroupKeyStore
|
Pointer ke objek penyimpanan kunci grup platform.
|
KeyExportDelegate
|
Pointer ke objek delegasi ekspor kunci.
|
SharedSecret[kMaxECDHSharedSecretSize]
|
uint8_t
|
SharedSecretLen
|
uint16_t
|
Fungsi publik |
|
---|---|
AllowedConfigs() const
|
uint8_t
|
GenerateKeyExportReconfigure(uint8_t *buf, uint16_t bufSize, uint16_t & msgLen)
|
|
GenerateKeyExportRequest(uint8_t *buf, uint16_t bufSize, uint16_t & msgLen, uint8_t proposedConfig, uint32_t keyId, bool signMessages)
|
|
GenerateKeyExportResponse(uint8_t *buf, uint16_t bufSize, uint16_t & msgLen, const WeaveMessageInfo *msgInfo)
|
|
Init(WeaveKeyExportDelegate *keyExportDelegate, GroupKeyStoreBase *groupKeyStore)
|
void
|
IsAllowedConfig(uint8_t config) const
|
bool
|
IsInitiator() const
|
bool
|
KeyId() const
|
uint32_t
|
MessageInfo() const
|
const WeaveMessageInfo *
|
ProcessKeyExportReconfigure(const uint8_t *buf, uint16_t msgSize, uint8_t & config)
|
|
ProcessKeyExportRequest(const uint8_t *buf, uint16_t msgSize, const WeaveMessageInfo *msgInfo)
|
|
ProcessKeyExportResponse(const uint8_t *buf, uint16_t msgSize, const WeaveMessageInfo *msgInfo, uint8_t *exportedKeyBuf, uint16_t exportedKeyBufSize, uint16_t & exportedKeyLen, uint32_t & exportedKeyId)
|
|
ProtocolConfig() const
|
uint8_t
|
Reset(void)
|
void
|
SetAllowedConfigs(uint8_t allowedConfigs)
|
void
|
Shutdown(void)
|
void
|
SignMessages() const
|
bool
|
State() const
|
uint8_t
|
Jenis publik
@260
@260
Status saat ini dari objek WeaveKeyExport.
Properti | |
---|---|
kState_InitiatorDone
|
Status pemicu yang menunjukkan bahwa respons ekspor kunci telah diproses. |
kState_InitiatorGeneratingRequest
|
Status inisiator yang menunjukkan bahwa pesan permintaan ekspor kunci sedang dibuat. |
kState_InitiatorReconfigureProcessed
|
Status inisiator yang menunjukkan bahwa pesan konfigurasi ulang ekspor kunci telah diproses. |
kState_InitiatorRequestGenerated
|
Status inisiator yang menunjukkan bahwa pesan permintaan ekspor kunci telah dibuat. |
kState_Reset
|
Status awal (dan akhir) objek WeaveKeyExport. |
kState_ResponderDone
|
Status responden yang menunjukkan bahwa pesan respons ekspor kunci telah dibuat. |
kState_ResponderProcessingRequest
|
Status responden yang menunjukkan bahwa pesan permintaan ekspor kunci sedang diproses. |
kState_ResponderRequestProcessed
|
Status responden yang menunjukkan bahwa pesan permintaan ekspor kunci telah diproses. |
Atribut publik
ECDHPrivateKey
uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]
ECDHPrivateKeyLen
uint16_t ECDHPrivateKeyLen
{i>ECDHPublicKey<i}
uint8_t ECDHPublicKey[kMaxECDHPublicKeySize]
EncryptionAndAuthenticationKey
uint8_t EncryptionAndAuthenticationKey[kEncryptionAndAuthenticationKeySize]
KeyExportDelegate
WeaveKeyExportDelegate * KeyExportDelegate
Pointer ke objek delegasi ekspor kunci.
SharedSecret
uint8_t SharedSecret[kMaxECDHSharedSecretSize]
SharedSecretLen
uint16_t SharedSecretLen
Fungsi publik
AllowedConfigs
uint8_t AllowedConfigs() const
GenerateKeyExportReconfigure
WEAVE_ERROR GenerateKeyExportReconfigure( uint8_t *buf, uint16_t bufSize, uint16_t & msgLen )
GenerateKeyExportRequest
WEAVE_ERROR GenerateKeyExportRequest( uint8_t *buf, uint16_t bufSize, uint16_t & msgLen, uint8_t proposedConfig, uint32_t keyId, bool signMessages )
GenerateKeyExportResponse
WEAVE_ERROR GenerateKeyExportResponse( uint8_t *buf, uint16_t bufSize, uint16_t & msgLen, const WeaveMessageInfo *msgInfo )
Init
void Init( WeaveKeyExportDelegate *keyExportDelegate, GroupKeyStoreBase *groupKeyStore )
IsAllowedConfig
bool IsAllowedConfig( uint8_t config ) const
IsInitiator
bool IsInitiator() const
KeyId
uint32_t KeyId() const
MessageInfo
const WeaveMessageInfo * MessageInfo() const
ProcessKeyExportReconfigure
WEAVE_ERROR ProcessKeyExportReconfigure( const uint8_t *buf, uint16_t msgSize, uint8_t & config )
ProcessKeyExportRequest
WEAVE_ERROR ProcessKeyExportRequest( const uint8_t *buf, uint16_t msgSize, const WeaveMessageInfo *msgInfo )
ProcessKeyExportResponse
WEAVE_ERROR ProcessKeyExportResponse( const uint8_t *buf, uint16_t msgSize, const WeaveMessageInfo *msgInfo, uint8_t *exportedKeyBuf, uint16_t exportedKeyBufSize, uint16_t & exportedKeyLen, uint32_t & exportedKeyId )
ProtocolConfig
uint8_t ProtocolConfig() const
Reset
void Reset( void )
SetAllowedConfigs
void SetAllowedConfigs( uint8_t allowedConfigs )
Nonaktif
void Shutdown( void )
SignMessages
bool SignMessages() const
Negara Bagian
uint8_t State() const