BLE (blue tooth low energy) : what is the difference between encryption and whitening regarding to packets?
Whitening 'whitens' the whole packet.


Whitening happens after CRC generation in a tx packet.
Unwhitening happens before CRC checking in a rx packet.


Encryption 'encrypts' only the payload of the packet (not the header, nor the length).


Encryption happens before CRC generation in a tx packet.
Decryption happens after CRC checking in a rx packet.