Mbed TLS is now part of TrustedFirmware.org.

mbedtls on nxp kinetis k8x


Aug 7, 2017 22:00
Shigueru

board FRDM-K82F IDE MCUXPRESSO SDK_2.2_FRDM-K82F demo app mbedtls_benchmark

The important result to me is the ECDH-Curve25519 : 0.10 handshake/s

Is it possible to improve this result?

 
Aug 17, 2017 15:11
Ron Eldor

Hi Shigueru,
Thank you for your information.
We always aim to improve our quality and performance.
I am having trouble understanding how you got this measurement, as the output is an unsigned integer, and thus there shouldn't such a result ( 0.10 ). Please check your output is correct.
Please check if you could compile your application with some speed optimizations.
In addition, note that mbed-OS has support for your platform, and you could use this operating system on your platform, with minimal porting effort.
Regards,
mbed TLS Team member
Ron

 
Aug 18, 2017 17:50
Shigueru

Hi, Ron, Thanks for your reply. The result is from the demo app mbedtls benchmark. The code I have to print the result is: DbgConsole_Printf("%6.2f " "handshake" "/s", \ ((float)ii) / ((benchmark_mbedtls_timing_hardclock() - tsc) \ / CLOCK_GetCoreSysClkFreq())); \ For other curves, the result is very better. From 9 to 50 handshake/s but curve25519 is very slow. I've tried to improve speed but failed. Can you give me specific instructions or directions? Regards, Shigueru

 
Aug 20, 2017 10:25
Ron Eldor

Hi Shigueru,
Thanks for clarifications. It seems that you have modified the demo app to fit your needs, as the original demo app's resolution is in unsigned integers. Please try to compile your code with -Ofast compilation flag, to increase performance.
I also suggest you measure the code to see what is the bottle neck for the operation on your platform.
Regards,
mbed TLS Team member
Ron