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.

CCS/TMS320C28346: Is it possible to measure the run time of public key-based cryptography?

Part Number: TMS320C28346
Other Parts Discussed in Thread: AES-128, SHA-256

Tool/software: Code Composer Studio

Hello, 

I want to measure the run time of various cryptographic algorithms(e.g., RSA, ElGamal) in TMS320C28346 using Code composer studio.

Can it work without a problem?
Any tips or example code would be appreciated.

Thanks a lot for all your help!

Best regard,

Donghyun

  • Donghyun,

    It sounds like you are trying to profile the code pertaining to the algorithms in question. If so, I would recommend you use the built in CCS feature, Profile Clock, to profile the sections of code. I've forwarded this post to the CCS team further comment.

    Regards,

    Ozino

  • Thank you for answer.

    However, what this question means is not code that measures time, but code for public key based cryptography, such as the RSA or ElGamal algorithms.

    I want to find out how long it takes to perform the encryption algorithm on the TMS320C28346, but no example code for public key based cryptography is provided anywhere.

    I thought that the reason not provided was that the public key based cryptographic algorithms could not be measured on this device.

    I am wondering if there is any example code for public key based cryptographic algorithm.

    Of course, symmetric key-based encryption such as SHA-256 and AES-128 succeeded in the measurement.

    Sorry for the vague writing of the question.

    Thank you!

    Best reagrd

    Donghyun

  • Hi,

    I think software implementation of encryption algorithms should be possible on TMS320C28346. Currently we do not have any example code for these encryption algorithms for this device.

    Refer to below software  library for AES-128 algo.

    https://www.ti.com/tool/AES-128

    Thanks

    Vasudha