cancel
Showing results for 
Search instead for 
Did you mean: 

Cryptolibrary 4.x.x (cmox) RSA preallocated buffer

lieron
Associate

How do you know how big the preallocated static buffer should be when calling cmox_rsa_construct?

Does this depend on the RSA key size that will be used?

Does this depend on the Modular Exponentiation function that is selected (LOWMEM, MIDMEM, HIGHMEM)?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Jocelyn RICARD
ST Employee

Hello @lieron ,

you should find information in the Cryptolibrary Wiki in performance page here

It provides buffer size depending on the implementation used.

Another way to do is to put a pattern in your buffer, run the algo, check size used and add a margin.

Best regards

Jocelyn

View solution in original post

1 REPLY 1
Jocelyn RICARD
ST Employee

Hello @lieron ,

you should find information in the Cryptolibrary Wiki in performance page here

It provides buffer size depending on the implementation used.

Another way to do is to put a pattern in your buffer, run the algo, check size used and add a margin.

Best regards

Jocelyn