Hello, every: I have success to use sd_ecb_block function to encryption data. But I am not find how use this function to do decryption. Please teach me how to use this function, or give me a demo code. Thanks very much.
Hello, every: I have success to use sd_ecb_block function to encryption data. But I am not find how use this function to do decryption. Please teach me how to use this function, or give me a demo code. Thanks very much.
There is no hardware block to do ECB decryption in the nRF51822, and ECB encryption/decryption can be very insecure (see this Wikipedia page for an example).
I'd therefore strongly recommend you to instead use a AES mode which uses a hardware encryption block both for encryption and decryption, for example the counter mode. We don't currently have any example code for this, but it should be fairly easy to implement yourself.
Hi Jim, were you able to figure this one out? I'm in the same boat, there's painfully little to go on.
Hi Jim, were you able to figure this one out? I'm in the same boat, there's painfully little to go on.