Is there any configuration using which we can disable on-the-fly Encryption/Decryption of packets?
Is there any configuration using which we can disable on-the-fly Encryption/Decryption of packets?
Hi,
Can you be more specific? Which protocol are you using (BLE or something else?), and which stack, etc? And do you want to disable encryption/decryption in a non-standard way, for instance for some debugging, or do you just want to not encrypt the link?
For instance with BLE, you do not have to encrypt the link, but depending on the configuration some characteristics may not be usable without it (the required security level is configured separately for each characteristic).
Hi,
Using BLE Protocol.
My question was w.r.t configuring on-the-fly encryption/decryption of the packets. i.e. I would like to feed the input to the CCM engine and get the Encrypted/Decrypted Payload as output instead of configuring the on-the-fly mode where PPI and Shorts are used to get the decrypted payload directly.
Hi,
I see. This is not possible if you are using the SoftDevice (Nordic's BLE stack).
Hi,
Thank you. But I am not using SoftDevice.
The problem I am facing when using the above mentioned method is that, the "EVENTS_ENDCRYPT" is coming after 40us when Encrypting which is fine. But when decrypting "EVENTS_ENDCRYPT" is getting set based on the payload length and the datarate.
For Example, if the payload length is 27bytes, "EVENTS_ENDCRYPT" is getting set after 320us. But the same Event is getting set while Encrypting 27bytes payload after 40us in 1M PHY. The same is coming after 2.32ms for 27byte payload in LR-C8 while decrypting.
I would like to reduce this latency.
Encrypting 27byte payload is taking 42us even in LR-C8.