From 24da55eef7f032a8b4957fd9eb53dc3b87d01997 Mon Sep 17 00:00:00 2001 From: Harrison Mutai Date: Wed, 6 Nov 2024 14:26:44 +0000 Subject: [PATCH] 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 --- include/common/bl_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/common/bl_common.h b/include/common/bl_common.h index 647ae853b..2f065ec3c 100644 --- a/include/common/bl_common.h +++ b/include/common/bl_common.h @@ -167,6 +167,15 @@ typedef struct meminfo { size_t total_size; } 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 ******************************************************************************/