mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-01 21:04:21 +01:00
Update getting_started.md
This commit is contained in:
parent
ce56077f97
commit
2900811b01
@ -553,9 +553,9 @@ with a given key, salt and info:**
|
|||||||
|
|
||||||
1. Set up the key derivation context using the `psa_key_derivation_setup()`
|
1. Set up the key derivation context using the `psa_key_derivation_setup()`
|
||||||
function, specifying the derivation algorithm `PSA_ALG_HKDF(PSA_ALG_SHA_256)`.
|
function, specifying the derivation algorithm `PSA_ALG_HKDF(PSA_ALG_SHA_256)`.
|
||||||
1. Provide `salt` (optional) with `psa_key_derivation_input_bytes()`.
|
1. Provide an optional salt with `psa_key_derivation_input_bytes()`.
|
||||||
1. Provide `info` with `psa_key_derivation_input_bytes()`.
|
1. Provide info with `psa_key_derivation_input_bytes()`.
|
||||||
1. Provide `secret` with `psa_key_derivation_input_key()`, referencing a key that
|
1. Provide a 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` usage flag and the `PSA_ALG_CTR` algorithm for this
|
the `PSA_KEY_USAGE_ENCRYPT` usage flag and the `PSA_ALG_CTR` algorithm for this
|
||||||
|
Loading…
Reference in New Issue
Block a user