From b7a5b6ed35d9a6455e10be02a70c85d881661461 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Fri, 8 Dec 2023 12:09:04 +0000 Subject: [PATCH] Add comment explaining the purpose of header Explain why we have the wrappers in psa_memory_poisoning_wrappers.h Signed-off-by: David Horstmann --- tests/include/test/psa_memory_poisoning_wrappers.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/include/test/psa_memory_poisoning_wrappers.h b/tests/include/test/psa_memory_poisoning_wrappers.h index 3422339fd5..5192597a35 100644 --- a/tests/include/test/psa_memory_poisoning_wrappers.h +++ b/tests/include/test/psa_memory_poisoning_wrappers.h @@ -1,3 +1,9 @@ +/** Memory poisoning wrappers for PSA functions. + * + * These wrappers poison the input and output buffers of each function + * before calling it, to ensure that it does not access the buffers + * except by calling the approved buffer-copying functions. + */ /* * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later