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
The psa_key_derivation multipart operation allows only one key derivation operation which make it not suitable for the TLS 1.3 key derivation schedule.
For example, mbedtls uses psa_raw_key_agreement and multiples HKDF_EXTRACT/HKDF_EXPAND operations. With those operations, the secrets are temporarily outside of the TrustZone.
I see there are some specificis support for TLS 1.2 in PSA. Do you plan to do the same for TLS 1.3 ?
The text was updated successfully, but these errors were encountered:
I agree that it is desirable for all the key material to be inside the Crypto implementation, and not need to be extracted as part of the derivation processes.
Based on the key schedule, and the KDF API, can you do the following for TLS 1.3:
Use the psa_key_derivation_key_agreement() to put the initial DHE shared secret into a PSA_ALG_HKDF_EXTRACT() key derivation operation, with the Salt value as specified in the key schedule.
Get a new PSA_KEY_TYPE_DERIVE key as output from KDF in step 1 using psa_key_derivation_output_key(), with permitted algorithm PSA_ALG_HKDF_EXPAND().
Create another key derivation operation to perform PSA_ALG_HKDF_EXPAND(), and input the key from step 2 as the secret, and the relevant info/label from the key schedule.
Extract the result of the step 3 KDF as another derivation key
Repeat step 3 & 4 for additional HKDF-EXPAND derivations from the key that was output in step 2, as required for the schedule.
And continue this pattern, working through the entire key schedule.
If this is not possible, can you specifically highlight where the API fails to meet the key schedule requirements for TLS1.3?
The psa_key_derivation multipart operation allows only one key derivation operation which make it not suitable for the TLS 1.3 key derivation schedule.
For example, mbedtls uses psa_raw_key_agreement and multiples HKDF_EXTRACT/HKDF_EXPAND operations. With those operations, the secrets are temporarily outside of the TrustZone.
I see there are some specificis support for TLS 1.2 in PSA. Do you plan to do the same for TLS 1.3 ?
The text was updated successfully, but these errors were encountered: