TMS320F28P650DK: Issue of AES function

Part Number: TMS320F28P650DK

Tool/software:

Hi experts,

My client is developing AES function on f28p65.

On AES128 GCM mode, if the data (int16) length less than 0x70, the result of AES128 is match with the result from OpenSSL. If the data length more than 0x80, the result of AES128 is different from the result from OpenSSL.

Data length less than 0x70 (Green: MAC calculated by AES128, Blue: data, red MAC calculated by OpenSSL)

Data length more than 0x70 (Green: MAC calculated by AES128, Blue: data, red MAC calculated by OpenSSL)

Any suggestions for this issue?

Thanks,

Leo

  • Any update here?

  • Hi,

    This is not expected. Can you please check if the data that is fed to the device and the OpenSSL maintaining the endianness like in the passing case beyond the data size of 0x70? We have tested it against the NIST test vectors and it has always matched for us. 

    Thanks & Regards

    Pramod

  • Hi Pramod

    Could you test whether the AES module encrypts correctly when data length exceeds 0x80?

    Thanks,

    Leo

  • Hi Leo,

    I'll need sometime for the same. Will get back to you with a response in a couple of days.

    Thanks & Regards

    Pramod

  • Hi Leo,

    While I am trying to figure out a data set with which I can verify if the Tag matches the expectation for a greater Tag length, can you please point me to that OpenSSL from where the customer is trying to generate the result from and how to go about giving the parameters in order to generate the desired result. 

    Thanks & Regards

    Pramod