1

(1 replies, posted in wolfSSL)

Hi

I know this topic has been up before, and I can find information about it in the forum.

At least I can find info about minimum flash size of around 21kB using LeanPSK build switch.

- What is the minimum RAM (heap/stack) usage?
- Is it possible to allocate a single block of memory instead of using dynamic memory allocation?
   - My uTasker OS doesn't support free. It only supports malloc...

I need to use RSA, SHA256 and TLS v1.2.

Thanks!

Best regards
Brian

Hi

I'm new to wolfSSL and the topic of secure communication.

I'm trying to implement wolfSSL into our product which runs on an ARM Cortex M4 processor based on the uTasker OS.
My goal is to use a TLS v1.2 connection to another embedded device (which FW I don't have any influence on), and to shrink the wolfSSL implementation to an absolute minimum.

I have made my own XMALLOC/XFREE implementation, but the uTasker uMalloc function is not as intelligent as the standard C-library malloc. It doesn't support free for more than the last allocated block...

I came across the option to use static I/O buffers by looking at the type parameter for the XMALLOC function. If I search in the source code, I can see more than 50 different memory allocation types.

- Does anyone have more information on how to use these memory types?
- Can they be used to reduce the use of dynamic memory?
- What purpose does the heap parameter have? Sometimes it is zero and sometimes it refers to an already allocated memory block (but the size is much larger than the old block).

I have already looked in the wolfSSL documentation for the XMALLOC function, but I didn't get the answers I was looking for...

Best regards
Brian