From 114d82407c30c18bc12b7d9964e1deeece4f9c88 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 7 Dec 2023 18:39:17 +0000 Subject: [PATCH] Add more information to comment on test hooks Signed-off-by: David Horstmann --- library/psa_crypto.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 84928ecff..414ed1d8a 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -5562,7 +5562,10 @@ exit: return status; } -/* Memory copying test hooks */ +/* Memory copying test hooks. These are called before input copy, after input + * copy, before output copy and after output copy, respectively. + * They are used by memory-poisoning tests to temporarily unpoison buffers + * while they are copied. */ #if defined(MBEDTLS_TEST_HOOKS) void (*psa_input_pre_copy_hook)(const uint8_t *input, size_t input_len) = NULL; void (*psa_input_post_copy_hook)(const uint8_t *input, size_t input_len) = NULL;