nRF52832 and SDK 17.0.2
Using the Examples/crypto/nrf_crypto/aes/aes_all_cli example I am getting the wrong output in CFB mode.
"example key_size 256_bit"
"example aes cfb"
The Nordic code is outputting
97 E8 C2 8A 2A 73 24 81 13 D1 78 8C B2 72 2F 2F
F1 93 C7 13 F6 4B A4 7C FB FC 25 A8 0A 77 B3 7E
EF 2B 33 BD 2B 17 4F B2 B7 B0 47 9D 22 2F 30 BB
36 CA 93 57 6F 0D 25 55 8B 24 F5 EA 1D DF C7 27
and then decrypting it back to the original.
However, our Android code is outputting a different result (using same Plaintext, Key and IV). More importantly, GCHQ's online example is ALSO outputting the same as our Android code
a52d17bc1928db89d62758d0042b357b1ea13a942eae5f4681046550fd53764147ff960033c38da94e2993f46b905479dd8a494e171cb9e4834f2c38286261e3
If I switch to using ECB mode then its fine.
Also as a side note, you have a minor formatting bug in plain_text_print in main.c. The format string is "%2x" when it should be "%02x". Leadings zeros are being missed.