PSA interruptible asymmetric operations: basic design #5888
Labels
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
enhancement
size-m
Estimated task size: medium (~1w)
The goal of this task is to write a basic design of a PSA interruptible operations API. At this stage, some minor questions may be left unanswered.
Normally a cryptographic operation is implemented as a function. The function returns when the calculation is finished. Interruptible operations (which Mbed TLS calls “restartable”) are operations that return after a short period of time, whether the calculation is finished or not. If the calculation is unfinished, its state is saved in a context, and the caller can resume the operation by passing the context to the crypto library again. This is intended for very constrainted embedded environments that do not have preemption.
This API should support long-running operations, meaning asymmetric cryptography: signature, key agreement, asymmetric encryption. (Mbed TLS will not implement the asymmetric encryption interface, but I think it should be there for completeness, and it's only a very minor design effort.)
For the first phase, we're doing just sign-hash, tracked in #6061.
The text was updated successfully, but these errors were encountered: