From eefc517b1f7f34d2802fa6f5fc80d2580b9400ae Mon Sep 17 00:00:00 2001 From: Guy Wild Date: Wed, 4 Sep 2019 09:16:53 +0300 Subject: [PATCH] Update docs/getting_started.md Co-Authored-By: Gilles Peskine --- docs/getting_started.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index 15410c1186..5d123a6024 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -375,7 +375,8 @@ algorithms. **To calculate a hash:** 1. Allocate an operation structure (`psa_hash_operation_t`) to pass to the hash functions. -1. Call `psa_hash_setup()` to initialize the operation structure and specify the hash algorithm. +1. Initialize the operation structure to zero or to `PSA_HASH_OPERATION_INIT`. +1. Call `psa_hash_setup()` to specify the hash algorithm. 1. Call `psa_hash_update()` one or more times, passing the whole message or a fragment of the message on each call. 1. Call `psa_hash_finish()` to calculate the hash, or `psa_hash_verify()` to compare the computed hash with an expected hash value.