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

Method GetAuthKey

cpp/src/Driver.cpp:7184–7197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7182}
7183
7184aes_encrypt_ctx *Driver::GetAuthKey
7185(
7186)
7187{
7188 if( m_currentControllerCommand != NULL &&
7189 m_currentControllerCommand->m_controllerCommand == ControllerCommand_AddDevice &&
7190 m_currentControllerCommand->m_controllerState == ControllerState_Completed ) {
7191 /* we are adding a Node, so our AuthKey is different from normal comms */
7192 initNetworkKeys(true);
7193 } else if (m_inclusionkeySet) {
7194 initNetworkKeys(false);
7195 }
7196 return this->AuthKey;
7197};
7198aes_encrypt_ctx *Driver::GetEncKey
7199(
7200)

Callers 1

GenerateAuthenticationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected