Topic: Reducing wolfssl memory usage
Hello,
I am trying to reduce the memory usage of wolfssl in my application, I use PSKs with chacha poly with DTLS 1.3, the end goal is to make it run on embedded devices
I provide wolfSSL with a memory block through the wc_LoadStaticMemory function but I'm unable to provide a block with a "reasonable" size (meaning around 6 to 8kB) the least I can provide it without wolfssl complaining about a lack of memory is around 90 000 bytes
I'm building wolfSSL with CMake and I have tried using the defines specified here https://www.wolfssl.com/documentation/m … code-usage but it never changed anything
I also tried defining MAX_RECORD_SIZE to a lower value (1500) but contrary to what is stated in the documentation MAX_RECORD_SIZE is not a define, it is an enum, and as such redefining it breaks all the compilation
I think I went through most of the publicly available documentation but it did not help me, would anyone be able to help me here ?
Thanks