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

Function createIVFromPacket_inbound

cpp/src/ZWSecurity.cpp:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240 bool createIVFromPacket_inbound(uint8 const* _data, uint8 const m_nonce[8], uint8 *iv) {
241
242 for (int i = 0; i < 8; i++) {
243 iv[i] = _data[i];
244 }
245 for (int i = 0; i < 8; i++) {
246 iv[8+i] = m_nonce[i];
247 }
248 return true;
249 }
250
251 /* To Decrypt, we start the packet at the IV (right after the command)
252 *

Callers 1

DecryptBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected