Clarify comments

Clarify comments when moving into one-shot part
of demo.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2023-07-28 14:47:47 +01:00
parent c050037c08
commit 3071c85835

View file

@ -118,10 +118,11 @@ int main(void)
mbedtls_printf("Multi-part hash operation successful!\n"); 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)); memset(hash, 0, sizeof(hash));
hash_length = 0; hash_length = 0;
/* Compute hash using one-shot function call */
status = psa_hash_compute(HASH_ALG, status = psa_hash_compute(HASH_ALG,
buf, sizeof(buf), buf, sizeof(buf),
hash, sizeof(hash), hash, sizeof(hash),