Clarify comments
Clarify comments when moving into one-shot part
of demo.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c
index abfc191..f7b2f91 100644
--- a/programs/psa/psa_hash.c
+++ b/programs/psa/psa_hash.c
@@ -118,10 +118,11 @@
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),