cancel
Showing results for 
Search instead for 
Did you mean: 

Cryptolib RSA Nucleo-L476RG working slow

Wladimir
Associate II

Hello to all!

Using X-Cube-Cryptolib for RSA algorythm on Nucleo-L476RG board, encryption and subsequent decryption of demo message going very slow - 2 seconds, its mostly decription, i using hardware timer2 for time measuring.

Is there any ways to reduce decription time?

Best regards!

14 REPLIES 14
Wladimir
Associate II

Hello Jocelyn RICARD,

Unfortunately, it didn't help, the error has changed, now can't find the library file. The path to the library file I tried is both absolute and relative to the workspace.

0693W00000ANiJNQA1.png 

The error is:

" c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: cannot find -l:STM32CryptographicV3.0.0_CM4_GCC.a "

Best regards, Vladimir

Jocelyn RICARD
ST Employee

Hello Wladimir,

the issue could be related to too long path.

Could you try moving your project in a directory close to root ?

Otherwise, you could get the last cryptolib patch

The STM32CubeIDE is supported there for the recent STM32 families

Best regards

Jocelyn

Hello, Jocelyn RICARD,

Found solution of my problem in this topic, check out my latest post:

https://community.st.com/s/question/0D50X0000BJ2gL4SQJ/how-to-add-external-libraries-in-stm32cubeide?t=1620543260730

Wladimir
Associate II

If we talk about the original question of this topic, as I understand it, there are no ways to speed up the STM32Cryptolib.

Jocelyn RICARD
ST Employee

Hi Wladimir,

ok good you solved your issue.

Regarding speed, normally clock cycles used divided by your actual frequency should lead in the resulting time with small error margin.

So, if you have same conditions as for benchmarks you should get same results.

Best regards

Jocelyn