You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ Deriving a new AES-CTR 128-bit encryption key into a given key slot using HKDF w
335
335
1. Set up the generator using the `psa_key_derivation` function providing a key slot containing a key that can be used for key derivation and a salt and label (Note: salt and label are optional).
336
336
1. Initiate a key policy to for the derived key by calling `psa_key_policy_set_usage()` with `PSA_KEY_USAGE_ENCRYPT` parameter and the algorithm `PSA_ALG_CTR`.
337
337
1. Set the key policy to the derived key slot.
338
-
1. Import a key from generator into the desired key slot using (`psa_generator_import_key`).
338
+
1. Import a key from generator into the desired key slot using (`psa_generate_derived_key`).
339
339
1. Clean up generator.
340
340
341
341
At this point the derived key slot holds a new 128-bit AES-CTR encryption key derived from the key, salt and label provided:
@@ -378,7 +378,7 @@ At this point the derived key slot holds a new 128-bit AES-CTR encryption key de
@@ -494,7 +494,7 @@ Prerequisites to using key generation and export APIs:
494
494
495
495
Generate a piece of random 128-bit AES data:
496
496
1. Set the key policy for key generation by calling `psa_key_policy_set_usage()` with the `PSA_KEY_USAGE_EXPORT` parameter and the algorithm `PSA_ALG_GCM`.
497
-
1. Generate a random AES key by calling `psa_generate_key()`.
497
+
1. Generate a random AES key by calling `psa_generate_random_key()`.
498
498
1. Export the generated key by calling `psa_export_key()`:
499
499
```C
500
500
int slot = 1;
@@ -510,7 +510,7 @@ Generate a piece of random 128-bit AES data:
0 commit comments