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:
parent
c050037c08
commit
3071c85835
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue