Topic: wolfCrypt (ctaocrypt) without malloc

Hello,

I would like to use the ctaocrypt library but my environment is no OS. So I do not have malloc and friends. How do I configure ctaocrypt to use it in my case? Processor is Cortex-M3.

Thanks,
-siddarth

Share

Re: wolfCrypt (ctaocrypt) without malloc

Hi Siddarth,

You have 2 options.

1) At build time you can use the XMALLOC and friends macros to point to whatever allocators you do have available, or write you own and point the macros to those.

2) At runtime you can install you own Allocators with CyaSSL_SetAllocators() found in cyassl/ctaocrypt/memory.h .

I hope that helps,
-Todd

Share