1 (edited by abcdefg 2017-03-06 08:50:55)

Topic: what is the minimum buffer size to use ECC with static memory?

I have seen that the buffer size is defined as 50000 in wolfcrypt benchmark.c  (when using #define BENCH_EMBEDDED )

but, the buffer size is big to use on my device ( Nrf52, 64k ram )

so, my questions are..

1) what is the minimum buffer size to use the ECC with WOLFSSL_STATIC_MEMORY?

2) Is there some guide how to use the ECC on Nordic nrf52 without heap memory?

thanks.

Share

Re: what is the minimum buffer size to use ECC with static memory?

Hi abcdefg,

We do not have an exact amount that would be needed, there are unfortunately too many variables.

We chose a size that would work for nearly every configuration. Depending on your build you may be able to reduce that significantly. I regret the best suggestion at this time would be to look at our example in <wolfssl-root>/examples/server/server.c to see how we use the WOLFSSL_TRACK_MEMORY define to check how much memory is being used. Then test out reducing the size of that buffer to fit your environment and build.

We do not have a guide for ECC on Nordic nrf52. If that is something you would like us to look into please let us know and we can put you in touch with the business manager for your region to begin coordinating that effort.


Warm Regards,

Kaleb