Add support for key agreement inside a secure element #5491
Labels
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
enhancement
size-m
Estimated task size: medium (~1w)
This a step of the implementation of the interface for key derivation drivers introduced in #5451. It follows #5484 and #5490. The goal of this issue is to implement the
key_agreement_to_key
entry point for opaque drivers.key_agreement_to_key
entry point, then when performingpsa_key_derivation_key_agreement
, instead of calling the driver'skey_agreement
entry point, call itskey_agreement_to_key
entry point. This should leave thepsa_crypto_driver_key_derivation_inputs_t
in the same state as ifpsa_key_derivation_input_key
had been called on the key created bypsa_key_derivation_key_agreement
. Note that this does not apply when performingpsa_raw_key_agreement
: this always invokes the driver'spsa_key_agreement
entry point.key_agreement_to_key
, then when aborting it, call the driver'sdestroy_key
entry point on the key object that contains the shared secret.The text was updated successfully, but these errors were encountered: