I'm attempting to do AES 128-bit encryption/decryption on a CC430F5137 using the integrated AES accelerator hardware. Since I want to be able to encrypt and decrypt variable length RF packets without having to handle paddings to complete the 16-byte packet alignment required by ECB and CBC modes, OFB and CFB seem to be my sole options.
Looking into the user guide (slau259e), there is only one mention to OFB about how to encrypt data:
"When using the output feedback (OFB) cipher block chaining mode, setting the AESDINWR flag is sufficient to trigger the next encryption, and the module starts the encryption automatically using the output data from the previous encryption as input data."
Does the above mean that AESDINWR has to be set after filling AESADIN regardless of the amount of bytes loaded? Or will the encryption trigger itself if 16 bytes are written into AESADIN?
Does TI provide any useful example for modes OFB and CFB?
Thanks in advance