1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Update docs/getting_started.md

Co-Authored-By: Gilles Peskine <gilles.peskine@arm.com>
This commit is contained in:
Guy Wild
2019-09-04 09:17:54 +03:00
committed by GitHub
parent ad067c64f3
commit 0058ab61e7

View File

@ -557,7 +557,7 @@ function, specifying the derivation algorithm `PSA_ALG_HKDF(PSA_ALG_SHA_256)`.
1. Provide `secret` with `psa_key_derivation_input_key()`, referencing a key that 1. Provide `secret` with `psa_key_derivation_input_key()`, referencing a key that
can be used for key derivation. can be used for key derivation.
1. Set the key attributes desired for the new derived key. We'll set 1. Set the key attributes desired for the new derived key. We'll set
the `PSA_KEY_USAGE_ENCRYPT` parameter and the `PSA_ALG_CTR` algorithm for this the `PSA_KEY_USAGE_ENCRYPT` usage flag and the `PSA_ALG_CTR` algorithm for this
example. example.
1. Derive the key by calling `psa_key_derivation_output_key()`. 1. Derive the key by calling `psa_key_derivation_output_key()`.
1. Clean up the key derivation context. 1. Clean up the key derivation context.