Hi, The artical form this link is great ! devzone.nordicsemi.com/.../ but I've some interogations. the clear text contains the nonce value; 12 random bytes starting at index 4 and the counter value starting at index 0.
I didn't understand what the cipher text contains ? what I see is that the buf contains the message and the ciphertext contains the result of the xor operation with output buffer from the ECB, but this line of code "buf[i] ^= m_ecb_data.ciphertext[i];" doesn't fit with Alice's and Bob's e.g.
Best regards,
Kacem.