I am working on the code to use the security engine of my MPC83XX with Openssl. I can already encrypt/decrypt AES up to 64KByte of data. The problem comes with data greater than 64KByte since the maximum value of the length-bits is 65535.
I can assume the data is always in one piece on the Ram. So now I am collecting all the data in a Link Table and use the pointer to the table instead of the pointer to the data and set the J bit to 1. Now I am not sure what a value I should use for the length-bits since 0 would mean the Dword will be ignored. The real length of the data is too also big for 16 bit.
http://cache.freescale.com/files/32bit/doc/app_note/AN2755.pdf?fpsp=1 Possible Informations can be found in Chapter 8.