| 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 | * |