trussed-dev / trussed

Modern Cryptographic Firmware
https://trussed.dev
Apache License 2.0
405 stars 26 forks source link

Add `Clear` syscall #139

Closed sosthene-nitrokey closed 9 months ago

sosthene-nitrokey commented 10 months ago

This syscall does the same as delete for a key. The only difference is that it is designed to allow re-import of the key if it was exported with WrapKey.

With the core trussed backend this does not change anything, as nothing is needed to allow the re-import. However the same mechansim in the SE050 work differently, and being able to differenciate permanent deletion and deletion with intent to re-import is crucial.