nl:: बुना:: प्रोफ़ाइलें:: सुरक्षा:: कीएक्सपोर्ट:: WeaveKeyएक्सपोर्ट
#include <src/lib/profiles/security/WeaveKeyExport.h>
Weave कुंजी एक्सपोर्ट प्रोटोकॉल के कोर लॉजिक लागू करता है.
खास जानकारी
सार्वजनिक प्रकार |
|
---|---|
@260{
|
enum WeaveKeyएक्सपोर्ट ऑब्जेक्ट की मौजूदा स्थिति. |
सार्वजनिक विशेषताएं |
|
---|---|
ECDHPrivateKey[kMaxECDHPrivateKeySize]
|
uint8_t
|
ECDHPrivateKeyLen
|
uint16_t
|
ECDHPublicKey[kMaxECDHPublicKeySize]
|
uint8_t
|
EncryptionAndAuthenticationKey[kEncryptionAndAuthenticationKeySize]
|
uint8_t
|
GroupKeyStore
|
प्लैटफ़ॉर्म ग्रुप कुंजी के स्टोर ऑब्जेक्ट की ओर इशारा करता है.
|
KeyExportDelegate
|
मुख्य एक्सपोर्ट डेलिगेट ऑब्जेक्ट की ओर इशारा करता है.
|
SharedSecret[kMaxECDHSharedSecretSize]
|
uint8_t
|
SharedSecretLen
|
uint16_t
|
सार्वजनिक फ़ंक्शन |
|
---|---|
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
|
सार्वजनिक प्रकार
@260
@260
WeaveKeyएक्सपोर्ट ऑब्जेक्ट की मौजूदा स्थिति.
प्रॉपर्टी | |
---|---|
kState_InitiatorDone
|
शुरुआत करने वाले की स्थिति से यह पता चलता है कि कुंजी के एक्सपोर्ट का जवाब प्रोसेस किया गया. |
kState_InitiatorGeneratingRequest
|
शुरुआत करने की स्थिति से यह पता चलता है कि कुंजी के एक्सपोर्ट का अनुरोध मैसेज जनरेट किया जा रहा है. |
kState_InitiatorReconfigureProcessed
|
शुरुआत करने वाले की स्थिति से पता चलता है कि कुंजी एक्सपोर्ट को फिर से कॉन्फ़िगर करने का मैसेज प्रोसेस हुआ. |
kState_InitiatorRequestGenerated
|
शुरुआत करने वाले की स्थिति से यह पता चलता है कि कुंजी एक्सपोर्ट का अनुरोध मैसेज जनरेट कर दिया गया है. |
kState_Reset
|
WeaveKeyएक्सपोर्ट ऑब्जेक्ट की शुरुआती (और आखिरी) स्थिति. |
kState_ResponderDone
|
जवाब देने वाले की स्थिति से यह पता चलता है कि मुख्य एक्सपोर्ट रिस्पॉन्स मैसेज जनरेट किया गया था. |
kState_ResponderProcessingRequest
|
जवाब देने वाले की स्थिति से पता चलता है कि खास एक्सपोर्ट का अनुरोध मैसेज प्रोसेस किया जा रहा है. |
kState_ResponderRequestProcessed
|
जवाब देने वाले की स्थिति से यह पता चलता है कि मुख्य एक्सपोर्ट अनुरोध के मैसेज को प्रोसेस किया जा चुका है. |
सार्वजनिक विशेषताएं
ECDHprivateKey
uint8_t ECDHPrivateKey[kMaxECDHPrivateKeySize]
ECDHPrivateKeyLen
uint16_t ECDHPrivateKeyLen
ECDHसार्वजनिककुंजी
uint8_t ECDHPublicKey[kMaxECDHPublicKeySize]
एन्क्रिप्शन और पुष्टि करने का बटन
uint8_t EncryptionAndAuthenticationKey[kEncryptionAndAuthenticationKeySize]
ग्रुप कीस्टोर
GroupKeyStoreBase * GroupKeyStore
प्लैटफ़ॉर्म ग्रुप कुंजी के स्टोर ऑब्जेक्ट की ओर इशारा करता है.
की एक्सपोर्ट डेलिगेट
WeaveKeyExportDelegate * KeyExportDelegate
मुख्य एक्सपोर्ट डेलिगेट ऑब्जेक्ट की ओर इशारा करता है.
शेयर किया गया सीक्रेट
uint8_t SharedSecret[kMaxECDHSharedSecretSize]
SharedSecretLen
uint16_t SharedSecretLen
सार्वजनिक फ़ंक्शन
अनुमति वाले कॉन्फ़िगरेशन
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 )
इनिट
void Init( WeaveKeyExportDelegate *keyExportDelegate, GroupKeyStoreBase *groupKeyStore )
isAllowedConfig
bool IsAllowedConfig( uint8_t config ) const
शुरुआत करने वाला
bool IsInitiator() const
की-आईडी
uint32_t KeyId() const
मैसेज की जानकारी
const WeaveMessageInfo * MessageInfo() const
ProcessKeyExportReconfigure
WEAVE_ERROR ProcessKeyExportReconfigure( const uint8_t *buf, uint16_t msgSize, uint8_t & config )
ProcessKeyएक्सपोर्ट अनुरोध
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 )
प्रोटोकॉल कॉन्फ़िगरेशन
uint8_t ProtocolConfig() const
रीसेट करें
void Reset( void )
setAllowedConfigs
void SetAllowedConfigs( uint8_t allowedConfigs )
शटडाउन
void Shutdown( void )
साइन मैसेज
bool SignMessages() const
राज्य
uint8_t State() const