Hello @ashwini2024,
Thanks for letting me know. About your question, to the best of my understanding, there is no way to workaround the memory allocation, this means you will need to follow the same flow as the one shown in the examples, therefore you will need to use hse_mem_alloc.
Doing a surface level analysis, the logic implemented to handle memory allocation and free is similar to a liked list. However the exact details are out of my expertise.
This function does not handle memory deallocation automatically. You will need to implement your own logic to free the memory using the function hse_mem_free. You can check the provided examples for a reference on how to use it, for instance examples/hse-encrypt/hse-encrypt.c#L172.
I can also recommend checking section 10.3 of the BSP40 user manual, starting at page 78:

Let me know if this information answers your question.