Hi All,
I am trying to decrypt some data coming in on my board with AES ECB mode. I know that there is no decryption function for ECB and you have to use the same sd_ecb_encrypt function and XOR the resulting ciphertext with the encrypted data. My question is that if I'm not using a nonce or counter value (i know i should be using them to make it more secure but i'm not at that step yet) what should I populate the ECB data structure's cleartext field and do I need to XOR the result with something?
Setup: nRF52832, SDK 14.20, SD V5
Further Background: I'm using code based on this Nordic post on ECB AES mode but the example uses ECB as part of a stream cipher; i need to use it strictly as a block cipher.
If you'd like any further information from me let me know,
Thanks,
patjshan