smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 244 forks source link

SDL encrypts payload of 1st frame of multi-frame message #3659

Closed dboltovskyi closed 3 years ago

dboltovskyi commented 3 years ago

Bug Report

In case if RPC service has switched to protected mode and SDL sends multi-frame message payload of 1st frame is encrypted. However it shouldn't be encrypted and it's size should always be 8 bytes. (See https://github.com/smartdevicelink/sdl_core/issues/2384)

Reproduction Steps
  1. Start SDL, HMI, connect mobile device
  2. Register new App
  3. Switch RPC service to protected mode => SDL starts PTU through protected channel and sends encrypted OnSystemRequest notification to mobile with Policy Table Snapshot (PTS). In case if PTS is >16kb it would be split into a few frames.
  4. Check content of the 1st frame
Expected Behavior
Observed Behavior
OS & Version Information
Test Case, Sample Code, and / or Example App

2 - first frame true - encryption flag 45 - size of the payload

LitvinenkoIra commented 3 years ago

Luxoft team is going to provide a fix.