Update based on Jaeden's comments.
This commit is contained in:
parent
5b1347a59e
commit
ce56077f97
1 changed files with 2 additions and 2 deletions
|
@ -553,7 +553,7 @@ 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 an optional salt with `psa_key_derivation_input_bytes()`.
|
1. Provide `salt` (optional) 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 `secret` with `psa_key_derivation_input_key()`, referencing a key that
|
||||||
can be used for key derivation.
|
can be used for key derivation.
|
||||||
|
@ -564,7 +564,7 @@ function, specifying the derivation algorithm `PSA_ALG_HKDF(PSA_ALG_SHA_256)`.
|
||||||
1. Clean up the key derivation context.
|
1. Clean up the key derivation context.
|
||||||
|
|
||||||
At this point, the derived key slot holds a new 128-bit AES-CTR encryption key
|
At this point, the derived key slot holds a new 128-bit AES-CTR encryption key
|
||||||
derived from the key, salt and `info` provided:
|
derived from the key, salt and info provided:
|
||||||
```C
|
```C
|
||||||
psa_status_t status;
|
psa_status_t status;
|
||||||
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
|
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue