This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: about CC2340 AESCBC_oneStepDecrypt function.

Expert 1175 points

Part Number: CC2340R5
Other Parts Discussed in Thread: CC1352P,

Hi Ti Experts.

Our customer has a need to use AESCBC_oneStepDecrypt for decoding. We migrated the program from the customer's CC1352P, but we have not been able to successfully decode it. We tracked down the source code in the SDK and found that in your function, it will directly return AESCBC_STATUS_FEATURE_NOT_SUPPORTED , but in AESCBC_oneStepEncrypt it can work normally,

SDK version is simplelink_lowpower_f3_sdk_7_10_00_35 and CCS12 IDE.

Will this issue be fixed in future SDK versions?

  • Hi,

    Thank you for reaching out.

    As stated in the part's data sheet (see §9.5 in https://www.ti.com/lit/gpn/cc2340r5), CC2340R5 only has a hardware AES CBC encryption accelerator, but does not have a hardware AES CBC decryption accelerator.

    This technical element means the AESCBC_oneStepDecrypt is not planned to be added for CC2340R5.

    I understand this answer is not the one you were expecting, however, I prefer setting the right expectations right now instead of letting you expect something technically not feasible.
    In order to workaround this, I would kindly suggest to implement software AES CBC decryption. There is some code available online (see https://github.com/kokke/tiny-AES-c/blob/master/aes.c) you could leverage.

    Best regards,