MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetEncKey

Method GetEncKey

cpp/src/Driver.cpp:7198–7212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7196 return this->AuthKey;
7197};
7198aes_encrypt_ctx *Driver::GetEncKey
7199(
7200)
7201{
7202 if( m_currentControllerCommand != NULL &&
7203 m_currentControllerCommand->m_controllerCommand == ControllerCommand_AddDevice &&
7204 m_currentControllerCommand->m_controllerState == ControllerState_Completed ) {
7205 /* we are adding a Node, so our EncryptKey is different from normal comms */
7206 initNetworkKeys(true);
7207 } else if (m_inclusionkeySet) {
7208 initNetworkKeys(false);
7209 }
7210
7211 return this->EncryptKey;
7212};
7213
7214bool Driver::isNetworkKeySet() {
7215 std::string networkKey;

Callers 2

EncyrptBufferFunction · 0.80
DecryptBufferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected