From 3071c85835c742e201ac6bd42770fa7d28a8b8f1 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Fri, 28 Jul 2023 14:47:47 +0100 Subject: [PATCH] Clarify comments Clarify comments when moving into one-shot part of demo. Signed-off-by: Thomas Daubney --- programs/psa/psa_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c index abfc19174..f7b2f9197 100644 --- a/programs/psa/psa_hash.c +++ b/programs/psa/psa_hash.c @@ -118,10 +118,11 @@ int main(void) mbedtls_printf("Multi-part hash operation successful!\n"); } - /* Compute hash using one-shot function call */ + /* Clear local variables prior to one-shot hash demo */ memset(hash, 0, sizeof(hash)); hash_length = 0; + /* Compute hash using one-shot function call */ status = psa_hash_compute(HASH_ALG, buf, sizeof(buf), hash, sizeof(hash),