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.

How to load encrypted module using secured kernel on C6748



Hi,

We use C6748 generic secured device for our project.

I am  interesting in explanation (embedded code only) for how to use SK_decryptMod feature for decrypting my module.

If it possible I am interesting in  some short example, the same way there is example for SK_SetUserKey feature in the user guid.

1.  Does DSP should be in secured mode (Exit mode = SecureWithSK) or not?

2.  Is any memory placement constraint (DDR? L2RAM? shared RAM?) or I can use any of them (taking into the account the secured kernel constraint at the start of L2RAM?

3.  Using this function I had some strange undocumented result values:  -256, address of the input buffer, why is that happens?

4.  What should be the return value in case of success?

Thanks

Dani

  • Hi Dani,

    1. The device needs to exit in SecureWithSK to be able to call into secure kernal APIs.

    2. No there are no memory placement constraints.

    3.  That is not a valid error code but it could be that the negative values returned is being detected incorrectly in your IDE environment.

    4. The return value in case of success is zero.

    I can`t post the secure module decryption example on the forum. I have sent you a friend request, once you approve i can send it to you in a private conversation or I can share this through you local TI contact.

    Regards,

    Rahul

  • Dani,

    I have sent you an email with the sample code that demonstrates the use of SK_decrypt API. Please review the package and let us know if you have any questions.

    Regards,

    Rahul