feat(mbedtls): introduce crypto lib heap info struct

Add a struct to store information about the memory location of the heap,
intended for use with cryptographic libraries such as Mbed-TLS.

Change-Id: I42e6bbdbd3a353e01d70fb09b77edeef9498fd98
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
This commit is contained in:
Harrison Mutai 2024-11-06 14:26:44 +00:00
parent 0e932b8563
commit 24da55eef7

View file

@ -167,6 +167,15 @@ typedef struct meminfo {
size_t total_size; size_t total_size;
} meminfo_t; } meminfo_t;
/*******************************************************************************
* Structure used for conveying the location and size of the heap allocated for
* use by the cryptography library.
* *****************************************************************************/
struct crypto_heap_info {
void *addr;
size_t size;
};
/******************************************************************************* /*******************************************************************************
* Function & variable prototypes * Function & variable prototypes
******************************************************************************/ ******************************************************************************/