By default, MbedTLS uses the standard C library functions (malloc, calloc, realloc, and free) for dynamic memory allocation. However, in embedded systems or resource-constrained environments, you may want to use custom memory management functions to optimize memory usage or integrate with a specific memory allocator.