| 7196 | return this->AuthKey; |
| 7197 | }; |
| 7198 | aes_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 | |
| 7214 | bool Driver::isNetworkKeySet() { |
| 7215 | std::string networkKey; |
no outgoing calls
no test coverage detected