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,
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.
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.
Hi,
This is because since decryption happens on the fly as data flows in, it cannot be faster than the pace of the incoming data. So it is expected and correct that decryption takes 8 times longer when the rate is configured for 125 kbps (S=8) compared to using 1 Mbps. For encryption, it is different, since all data is present from the beginning of the operation.
Yes, I kind of got the idea regarding this.
But, I am not using the on-the-fly decryption method. I am explicitly giving the Encrypted data as Input and waiting for the Decryption to complete and get the decrypted output. So, I would like to know if there is any configuration that can be used to get the decryption done in quickly like in the case of Encryption.
Ah, I finally get the question. No, that is not possible. The CCM module is not very flexible since it is specifically designed to work with the radio in BLE context. The decryption speed has to be one of the supported datarates.