Refactor key derivation functions as transparent driver entry points #5479
Labels
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
enhancement
size-s
Estimated task size: small (~2d)
This a step of the implementation of the interface for key derivation drivers introduced in #5451. It follows #5477 and #5478. The goal of this issue is:
key_derivation_setup
(should already be there, or close),key_derivation_output_bytes
,key_derivation_abort
.psa_crypto_kdf.c
and corresponding header.psa_crypto_kdf.c
.Note that the key derivation code called before
key_derivation_setup
is not going to have driver alternatives, and is staying inpsa_crypto.c
for now. Code specific tooutput_key
is also staying inpsa_crypto.c
for now.Note that when the algorithm for the operation combines a key agreement step and a KDF step, the driver dispatch code and the driver should only see the KDF step. The pre-driver-setup code takes care of performing the key agreement and passes the resulting secret as an input to the driver.
I think there are enough unit tests for this refactoring, but feel free to add more if you think it's warranted.
The text was updated successfully, but these errors were encountered: