Skip to main content
Visitor II
October 22, 2024
Solved

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

  • October 22, 2024
  • 1 reply
  • 1294 views

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!

Best answer by Jocelyn RICARD

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

1 reply

Jocelyn RICARD
Jocelyn RICARDBest answer
ST Employee
October 22, 2024

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