AnsweredAssumed Answered

X-CUBE-CRYPTOLIB memory

Question asked by surleau.frederic on Oct 23, 2017
Latest reply on Oct 31, 2017 by surleau.frederic

Hi,

I'm using X-CUBE-CRYPTOLIB 3.1.0.

 

All RSA_PKCS1v15_* functions uses a "membuf_stt *P_pMemBuf)" parameter.

 

The documentation says : "The structure pointed by P_pMemBuf must be properly initialized."

 

In the examples the buffer use 4096 Bytes.

 

I could not find in the documentation the RAM size needed.

 

I try serval values, but RSA_PKCS1v15_Verify seems to need at least 4096 Bytes.

 

4KB is a lot of memory, for a STM32F103 with 20KB of RAM.

 

Where can I get more information ?

 

Regards,

Fred.

Outcomes